Prevent 500 in AP clietn
This commit is contained in:
parent
e0f49a19ea
commit
8ab98cfb61
|
@ -913,7 +913,7 @@ export class VideoCommentModel extends Model<Partial<AttributesOnly<VideoComment
|
||||||
|
|
||||||
if (isVideoOwned) {
|
if (isVideoOwned) {
|
||||||
const videoOwnerAccount = await AccountModel.loadAccountIdFromVideo(videoId)
|
const videoOwnerAccount = await AccountModel.loadAccountIdFromVideo(videoId)
|
||||||
blockerAccountIds.push(videoOwnerAccount.id)
|
if (videoOwnerAccount) blockerAccountIds.push(videoOwnerAccount.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
return blockerAccountIds
|
return blockerAccountIds
|
||||||
|
|
Loading…
Reference in New Issue