Prevent 500 in AP clietn

pull/5138/head
Chocobozzz 2022-07-13 11:03:07 +02:00
parent e0f49a19ea
commit 8ab98cfb61
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View 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