X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fcustom-validators%2Factivitypub%2Fvideo-comments.ts;h=7a9f7326d1fd473bd6024075047054de87f21c44;hb=c48e82b5e0478434de30626d14594a97f2402e7c;hp=151d13075a8ced9bd3d43149010d39df29f25675;hpb=5cf135001124cd19183336dbfcae1cd432217b00;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/custom-validators/activitypub/video-comments.ts b/server/helpers/custom-validators/activitypub/video-comments.ts index 151d13075..7a9f7326d 100644 --- a/server/helpers/custom-validators/activitypub/video-comments.ts +++ b/server/helpers/custom-validators/activitypub/video-comments.ts @@ -46,7 +46,7 @@ function isCommentContentValid (content: any) { function normalizeComment (comment: any) { if (!comment) return - if (!comment.url || typeof comment.url !== 'string') { + if (typeof comment.url !== 'string') { comment.url = comment.url.href || comment.url.url }