aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-13 11:03:07 +0200
committerChocobozzz <me@florianbigard.com>2022-07-13 11:03:07 +0200
commit8ab98cfb61993c25b3cfa365dcada1f92872ef97 (patch)
tree9db444ce0de64a0614842b71e8f3c3a9a3d9bab9 /server
parente0f49a19ea08921bffd597babfd8c7208c777d92 (diff)
downloadPeerTube-8ab98cfb61993c25b3cfa365dcada1f92872ef97.tar.gz
PeerTube-8ab98cfb61993c25b3cfa365dcada1f92872ef97.tar.zst
PeerTube-8ab98cfb61993c25b3cfa365dcada1f92872ef97.zip
Prevent 500 in AP clietn
Diffstat (limited to 'server')
-rw-r--r--server/models/video/video-comment.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts
index 1d3178164..6c5a764bf 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
913 913
914 if (isVideoOwned) { 914 if (isVideoOwned) {
915 const videoOwnerAccount = await AccountModel.loadAccountIdFromVideo(videoId) 915 const videoOwnerAccount = await AccountModel.loadAccountIdFromVideo(videoId)
916 blockerAccountIds.push(videoOwnerAccount.id) 916 if (videoOwnerAccount) blockerAccountIds.push(videoOwnerAccount.id)
917 } 917 }
918 918
919 return blockerAccountIds 919 return blockerAccountIds