mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
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) {
|
||||
if (comment.type !== 'Note') return false
|
||||
if (!comment || comment.type !== 'Note') return false
|
||||
|
||||
normalizeComment(comment)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user