mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
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[] {
|
function buildIcon (video: MVideoAP): ActivityIconObject[] {
|
||||||
return [ video.getMiniature(), video.getPreview() ]
|
return [ video.getMiniature(), video.getPreview() ]
|
||||||
|
.filter(i => !!i)
|
||||||
.map(i => i.toActivityPubObject(video))
|
.map(i => i.toActivityPubObject(video))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user