Fix webfinger tls only
This commit is contained in:
parent
06c2759338
commit
c171d85253
|
@ -1,5 +1,5 @@
|
||||||
import * as WebFinger from 'webfinger.js'
|
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 { isActivityPubUrlValid } from '@server/helpers/custom-validators/activitypub/misc'
|
||||||
import { REQUEST_TIMEOUT, WEBSERVER } from '@server/initializers/constants'
|
import { REQUEST_TIMEOUT, WEBSERVER } from '@server/initializers/constants'
|
||||||
import { ActorModel } from '@server/models/actor/actor'
|
import { ActorModel } from '@server/models/actor/actor'
|
||||||
|
@ -8,7 +8,7 @@ import { WebFingerData } from '@shared/models'
|
||||||
|
|
||||||
const webfinger = new WebFinger({
|
const webfinger = new WebFinger({
|
||||||
webfist_fallback: false,
|
webfist_fallback: false,
|
||||||
tls_only: isTestInstance(),
|
tls_only: isProdInstance(),
|
||||||
uri_fallback: false,
|
uri_fallback: false,
|
||||||
request_timeout: REQUEST_TIMEOUT
|
request_timeout: REQUEST_TIMEOUT
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue