Check the comment is defined when validating body
This commit is contained in:
parent
d05be4d944
commit
c049d791f9
|
@ -9,7 +9,7 @@ function isVideoCommentCreateActivityValid (activity: any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function sanitizeAndCheckVideoCommentObject (comment: any) {
|
function sanitizeAndCheckVideoCommentObject (comment: any) {
|
||||||
if (comment.type !== 'Note') return false
|
if (!comment || comment.type !== 'Note') return false
|
||||||
|
|
||||||
normalizeComment(comment)
|
normalizeComment(comment)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue