diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-12 17:53:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-13 16:50:33 +0100 |
commit | 3fd3ab2d34d512b160a5e6084d7609be7b4f4452 (patch) | |
tree | e5ca358287fca6ecacce83defcf23af1e8e9f419 /server/helpers/custom-validators/webfinger.ts | |
parent | c893d4514e6ecbf282c7985fe5f82b8acd8a1137 (diff) | |
download | PeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.tar.gz PeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.tar.zst PeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.zip |
Move models to typescript-sequelize
Diffstat (limited to 'server/helpers/custom-validators/webfinger.ts')
-rw-r--r-- | server/helpers/custom-validators/webfinger.ts | 8 |
1 files changed, 2 insertions, 6 deletions
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 @@ | |||
1 | import 'express-validator' | 1 | import { CONFIG } from '../../initializers' |
2 | import 'multer' | ||
3 | import { CONFIG } from '../../initializers/constants' | ||
4 | import { exists } from './misc' | 2 | import { exists } from './misc' |
5 | 3 | ||
6 | function isWebfingerResourceValid (value: string) { | 4 | function isWebfingerResourceValid (value: string) { |
@@ -13,9 +11,7 @@ function isWebfingerResourceValid (value: string) { | |||
13 | 11 | ||
14 | const host = accountParts[1] | 12 | const host = accountParts[1] |
15 | 13 | ||
16 | if (host !== CONFIG.WEBSERVER.HOST) return false | 14 | return host === CONFIG.WEBSERVER.HOST |
17 | |||
18 | return true | ||
19 | } | 15 | } |
20 | 16 | ||
21 | // --------------------------------------------------------------------------- | 17 | // --------------------------------------------------------------------------- |