X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Fhelpers%2Fcustom-validators%2Factivitypub%2Fvideo-comments.ts;h=ea852c4910a3ab43e9a0dce75ae9425bcb1eef97;hb=2b02c520e66ea452687cab39401b371711caa9ed;hp=ea780ca466332806cf43913425deedbd6578cadf;hpb=c883db6d038a8510205f5f13ef46fb5a1c9e8288;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 ea780ca46..ea852c491 100644 --- a/server/helpers/custom-validators/activitypub/video-comments.ts +++ b/server/helpers/custom-validators/activitypub/video-comments.ts @@ -1,4 +1,4 @@ -import * as validator from 'validator' +import validator from 'validator' import { ACTIVITY_PUB } from '../../../initializers/constants' import { exists, isArray, isDateValid } from '../misc' import { isActivityPubUrlValid } from './misc' @@ -48,8 +48,6 @@ function normalizeComment (comment: any) { if (typeof comment.url === 'object') comment.url = comment.url.href || comment.url.url else comment.url = comment.id } - - return } function isCommentTypeValid (comment: any): boolean {