Don't crash on non preview/thumbnail
This commit is contained in:
parent
cde288926e
commit
bf11895507
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue