-function isVideoCommentObjectValid (comment: any) {
- return comment.type === 'Note' &&
- isActivityPubUrlValid(comment.id) &&
+function sanitizeAndCheckVideoCommentObject (comment: any) {
+ if (!comment || comment.type !== 'Note') return false
+
+ normalizeComment(comment)
+
+ return isActivityPubUrlValid(comment.id) &&