]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-comment.ts
Prevent 500 in AP clietn
[github/Chocobozzz/PeerTube.git] / server / models / video / video-comment.ts
index 1d3178164bb439e0794c0d80fed9bfbb6f05f31d..6c5a764bf217bea8e59431737a7c9754eb569146 100644 (file)
@@ -913,7 +913,7 @@ export class VideoCommentModel extends Model<Partial<AttributesOnly<VideoComment
 
     if (isVideoOwned) {
       const videoOwnerAccount = await AccountModel.loadAccountIdFromVideo(videoId)
-      blockerAccountIds.push(videoOwnerAccount.id)
+      if (videoOwnerAccount) blockerAccountIds.push(videoOwnerAccount.id)
     }
 
     return blockerAccountIds