diff --git a/server/helpers/custom-validators/activitypub/video-comments.ts b/server/helpers/custom-validators/activitypub/video-comments.ts index 7a9f7326d..051c4565a 100644 --- a/server/helpers/custom-validators/activitypub/video-comments.ts +++ b/server/helpers/custom-validators/activitypub/video-comments.ts @@ -9,7 +9,7 @@ function isVideoCommentCreateActivityValid (activity: any) { } function sanitizeAndCheckVideoCommentObject (comment: any) { - if (comment.type !== 'Note') return false + if (!comment || comment.type !== 'Note') return false normalizeComment(comment)