Fix webfinger tls only

This commit is contained in:
Chocobozzz 2021-07-01 17:04:13 +02:00
parent 06c2759338
commit c171d85253
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import * as WebFinger from 'webfinger.js'
import { isTestInstance } from '@server/helpers/core-utils'
import { isProdInstance } from '@server/helpers/core-utils'
import { isActivityPubUrlValid } from '@server/helpers/custom-validators/activitypub/misc'
import { REQUEST_TIMEOUT, WEBSERVER } from '@server/initializers/constants'
import { ActorModel } from '@server/models/actor/actor'
@ -8,7 +8,7 @@ import { WebFingerData } from '@shared/models'
const webfinger = new WebFinger({
webfist_fallback: false,
tls_only: isTestInstance(),
tls_only: isProdInstance(),
uri_fallback: false,
request_timeout: REQUEST_TIMEOUT
})