Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Prevent 500 in AP clietn

Chocobozzz8ab98cfb6199
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts
index 1d3178164b..6c5a764bf2 100644
--- a/server/models/video/video-comment.ts
+++ b/server/models/video/video-comment.ts
@@ -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