diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-01 17:04:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-01 17:04:13 +0200 |
commit | c171d852532d9858a6e4a08ce528e16918c6725d (patch) | |
tree | 36b0211d0018b4d95c03baf0be7d54154291610f | |
parent | 06c27593386459b0f6b85fc674460ea5af23f7f1 (diff) | |
download | PeerTube-c171d852532d9858a6e4a08ce528e16918c6725d.tar.gz PeerTube-c171d852532d9858a6e4a08ce528e16918c6725d.tar.zst PeerTube-c171d852532d9858a6e4a08ce528e16918c6725d.zip |
Fix webfinger tls only
-rw-r--r-- | server/lib/activitypub/actors/webfinger.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/actors/webfinger.ts b/server/lib/activitypub/actors/webfinger.ts index 723fca586..1c7ec4717 100644 --- a/server/lib/activitypub/actors/webfinger.ts +++ b/server/lib/activitypub/actors/webfinger.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import * as WebFinger from 'webfinger.js' | 1 | import * as WebFinger from 'webfinger.js' |
2 | import { isTestInstance } from '@server/helpers/core-utils' | 2 | import { isProdInstance } from '@server/helpers/core-utils' |
3 | import { isActivityPubUrlValid } from '@server/helpers/custom-validators/activitypub/misc' | 3 | import { isActivityPubUrlValid } from '@server/helpers/custom-validators/activitypub/misc' |
4 | import { REQUEST_TIMEOUT, WEBSERVER } from '@server/initializers/constants' | 4 | import { REQUEST_TIMEOUT, WEBSERVER } from '@server/initializers/constants' |
5 | import { ActorModel } from '@server/models/actor/actor' | 5 | import { ActorModel } from '@server/models/actor/actor' |
@@ -8,7 +8,7 @@ import { WebFingerData } from '@shared/models' | |||
8 | 8 | ||
9 | const webfinger = new WebFinger({ | 9 | const webfinger = new WebFinger({ |
10 | webfist_fallback: false, | 10 | webfist_fallback: false, |
11 | tls_only: isTestInstance(), | 11 | tls_only: isProdInstance(), |
12 | uri_fallback: false, | 12 | uri_fallback: false, |
13 | request_timeout: REQUEST_TIMEOUT | 13 | request_timeout: REQUEST_TIMEOUT |
14 | }) | 14 | }) |