X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fapi%2Fusers%2Fmy-subscriptions.ts;h=c52df31544fbe546998cf142a205fdba3f8200e9;hb=c1340a6ac35f924161e6ec2a1d728e20c89e55c8;hp=a173adfd0bf786f45cc01f388b7334f3d26cd1c5;hpb=dae86118ed5d4026d04acb9d0e36829b9ad8eb4e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/api/users/my-subscriptions.ts b/server/controllers/api/users/my-subscriptions.ts index a173adfd0..c52df3154 100644 --- a/server/controllers/api/users/my-subscriptions.ts +++ b/server/controllers/api/users/my-subscriptions.ts @@ -1,7 +1,7 @@ import * as express from 'express' import 'multer' import { getFormattedObjects } from '../../../helpers/utils' -import { CONFIG, sequelizeTypescript } from '../../../initializers' +import { WEBSERVER } from '../../../initializers/constants' import { asyncMiddleware, asyncRetryTransactionMiddleware, @@ -20,6 +20,7 @@ import { VideoFilter } from '../../../../shared/models/videos/video-query.type' import { ActorFollowModel } from '../../../models/activitypub/actor-follow' import { JobQueue } from '../../../lib/job-queue' import { logger } from '../../../helpers/logger' +import { sequelizeTypescript } from '../../../initializers/database' const mySubscriptionsRouter = express.Router() @@ -80,7 +81,7 @@ async function areSubscriptionsExist (req: express.Request, res: express.Respons const handles = uris.map(u => { let [ name, host ] = u.split('@') - if (host === CONFIG.WEBSERVER.HOST) host = null + if (host === WEBSERVER.HOST) host = null return { name, host, uri: u } })