From da854ddd502cd70685ef779c673b9e63757b8aa0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 28 Dec 2017 11:16:08 +0100 Subject: Propagate old comment on new follow --- server/middlewares/validators/activitypub/activity.ts | 4 ++-- server/middlewares/validators/activitypub/signature.ts | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'server/middlewares/validators/activitypub') diff --git a/server/middlewares/validators/activitypub/activity.ts b/server/middlewares/validators/activitypub/activity.ts index e0225f30c..208e23f86 100644 --- a/server/middlewares/validators/activitypub/activity.ts +++ b/server/middlewares/validators/activitypub/activity.ts @@ -1,7 +1,7 @@ import * as express from 'express' import { body } from 'express-validator/check' -import { logger } from '../../../helpers' -import { isRootActivityValid } from '../../../helpers/custom-validators/activitypub' +import { isRootActivityValid } from '../../../helpers/custom-validators/activitypub/activity' +import { logger } from '../../../helpers/logger' import { areValidationErrors } from '../utils' const activityPubValidator = [ diff --git a/server/middlewares/validators/activitypub/signature.ts b/server/middlewares/validators/activitypub/signature.ts index d41bb6a8d..4efe9aafa 100644 --- a/server/middlewares/validators/activitypub/signature.ts +++ b/server/middlewares/validators/activitypub/signature.ts @@ -1,8 +1,11 @@ import * as express from 'express' import { body } from 'express-validator/check' -import { logger } from '../../../helpers' -import { isSignatureCreatorValid, isSignatureTypeValid, isSignatureValueValid } from '../../../helpers/custom-validators/activitypub' +import { + isSignatureCreatorValid, isSignatureTypeValid, + isSignatureValueValid +} from '../../../helpers/custom-validators/activitypub/signature' import { isDateValid } from '../../../helpers/custom-validators/misc' +import { logger } from '../../../helpers/logger' import { areValidationErrors } from '../utils' const signatureValidator = [ -- cgit v1.2.3