Fix invalid error when summary is undefined

This commit is contained in:
Alessandro Molina 2025-06-06 23:26:26 +02:00 committed by Chocobozzz
parent 03e46572a3
commit f19d34aa63

View File

@ -277,7 +277,7 @@ export function getVideoAttributesFromObject (videoChannel: MChannelId, videoObj
nsfw: videoObject.sensitive,
nsfwSummary: videoObject.sensitive
? videoObject.summary
? (videoObject.summary ?? null)
: null,
nsfwFlags: videoObject.sensitive
? getNSFWFlags(videoObject.tag)