diff options
Diffstat (limited to 'server/helpers/custom-validators/activitypub/video-comments.ts')
-rw-r--r-- | server/helpers/custom-validators/activitypub/video-comments.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
9 | } | 9 | } |
10 | 10 | ||
11 | function sanitizeAndCheckVideoCommentObject (comment: any) { | 11 | function sanitizeAndCheckVideoCommentObject (comment: any) { |
12 | if (comment.type !== 'Note') return false | 12 | if (!comment || comment.type !== 'Note') return false |
13 | 13 | ||
14 | normalizeComment(comment) | 14 | normalizeComment(comment) |
15 | 15 | ||