mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Move config in its own file
This commit is contained in:
parent
2c3abc4fa7
commit
6dd9de95df
79 changed files with 523 additions and 458 deletions
|
@ -3,7 +3,7 @@ import { WebFingerData } from '../../shared'
|
|||
import { ActorModel } from '../models/activitypub/actor'
|
||||
import { isTestInstance } from './core-utils'
|
||||
import { isActivityPubUrlValid } from './custom-validators/activitypub/misc'
|
||||
import { CONFIG } from '../initializers'
|
||||
import { WEBSERVER } from '../initializers/constants'
|
||||
|
||||
const webfinger = new WebFinger({
|
||||
webfist_fallback: false,
|
||||
|
@ -19,7 +19,7 @@ async function loadActorUrlOrGetFromWebfinger (uriArg: string) {
|
|||
const [ name, host ] = uri.split('@')
|
||||
let actor: ActorModel
|
||||
|
||||
if (host === CONFIG.WEBSERVER.HOST) {
|
||||
if (host === WEBSERVER.HOST) {
|
||||
actor = await ActorModel.loadLocalByName(name)
|
||||
} else {
|
||||
actor = await ActorModel.loadByNameAndHost(name, host)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue