From d896fef7e21cacfb44967eb9059fe543a66f5dd0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 5 Jun 2023 13:22:16 +0200 Subject: Refactor video formatter --- server/controllers/api/users/my-subscriptions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/controllers/api/users') diff --git a/server/controllers/api/users/my-subscriptions.ts b/server/controllers/api/users/my-subscriptions.ts index 6e2aa3711..c4360f59d 100644 --- a/server/controllers/api/users/my-subscriptions.ts +++ b/server/controllers/api/users/my-subscriptions.ts @@ -3,7 +3,7 @@ import express from 'express' import { handlesToNameAndHost } from '@server/helpers/actors' import { pickCommonVideoQuery } from '@server/helpers/query' import { sendUndoFollow } from '@server/lib/activitypub/send' -import { guessAdditionalAttributesFromQuery } from '@server/models/video/formatter/video-format-utils' +import { Hooks } from '@server/lib/plugins/hooks' import { VideoChannelModel } from '@server/models/video/video-channel' import { HttpStatusCode } from '../../../../shared/models/http/http-error-codes' import { buildNSFWFilter, getCountVideos } from '../../../helpers/express-utils' @@ -29,8 +29,8 @@ import { videosSortValidator } from '../../../middlewares/validators' import { ActorFollowModel } from '../../../models/actor/actor-follow' +import { guessAdditionalAttributesFromQuery } from '../../../models/video/formatter' import { VideoModel } from '../../../models/video/video' -import { Hooks } from '@server/lib/plugins/hooks' const mySubscriptionsRouter = express.Router() -- cgit v1.2.3