1
0
Fork 0

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

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
})