Don't crash on non preview/thumbnail

This commit is contained in:
Chocobozzz 2024-10-07 08:15:00 +02:00
parent cde288926e
commit bf11895507
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 0 deletions

View File

@ -284,6 +284,7 @@ function buildTags (video: MVideoAP) {
function buildIcon (video: MVideoAP): ActivityIconObject[] {
return [ video.getMiniature(), video.getPreview() ]
.filter(i => !!i)
.map(i => i.toActivityPubObject(video))
}