]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/custom-validators/activitypub/video-comments.ts
Add totalLocalVideoFilesSize in stats
[github/Chocobozzz/PeerTube.git] / server / helpers / custom-validators / activitypub / video-comments.ts
index 7a9f7326d1fd473bd6024075047054de87f21c44..051c4565abb0fbbe09107fb01eee837535fe9b21 100644 (file)
@@ -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)