From 3fd3ab2d34d512b160a5e6084d7609be7b4f4452 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Dec 2017 17:53:50 +0100 Subject: Move models to typescript-sequelize --- server/helpers/custom-validators/webfinger.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'server/helpers/custom-validators/webfinger.ts') diff --git a/server/helpers/custom-validators/webfinger.ts b/server/helpers/custom-validators/webfinger.ts index e93115d81..38f6b938d 100644 --- a/server/helpers/custom-validators/webfinger.ts +++ b/server/helpers/custom-validators/webfinger.ts @@ -1,6 +1,4 @@ -import 'express-validator' -import 'multer' -import { CONFIG } from '../../initializers/constants' +import { CONFIG } from '../../initializers' import { exists } from './misc' function isWebfingerResourceValid (value: string) { @@ -13,9 +11,7 @@ function isWebfingerResourceValid (value: string) { const host = accountParts[1] - if (host !== CONFIG.WEBSERVER.HOST) return false - - return true + return host === CONFIG.WEBSERVER.HOST } // --------------------------------------------------------------------------- -- cgit v1.2.3