mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +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
|
@ -1,6 +1,6 @@
|
|||
import * as Bull from 'bull'
|
||||
import { logger } from '../../../helpers/logger'
|
||||
import { CONFIG, REMOTE_SCHEME, sequelizeTypescript } from '../../../initializers'
|
||||
import { REMOTE_SCHEME, sequelizeTypescript, WEBSERVER } from '../../../initializers'
|
||||
import { sendFollow } from '../../activitypub/send'
|
||||
import { sanitizeHost } from '../../../helpers/core-utils'
|
||||
import { loadActorUrlOrGetFromWebfinger } from '../../../helpers/webfinger'
|
||||
|
@ -23,7 +23,7 @@ async function processActivityPubFollow (job: Bull.Job) {
|
|||
logger.info('Processing ActivityPub follow in job %d.', job.id)
|
||||
|
||||
let targetActor: ActorModel
|
||||
if (!host || host === CONFIG.WEBSERVER.HOST) {
|
||||
if (!host || host === WEBSERVER.HOST) {
|
||||
targetActor = await ActorModel.loadLocalByName(payload.name)
|
||||
} else {
|
||||
const sanitizedHost = sanitizeHost(host, REMOTE_SCHEME.HTTP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue