Fix webfinger tls only
This commit is contained in:
parent
06c2759338
commit
c171d85253
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue