diff options
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r-- | server/controllers/api/videos/index.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 8c9b0aa50..0d114dcd2 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -3,7 +3,6 @@ import * as multer from 'multer' | |||
3 | import { extname, join } from 'path' | 3 | import { extname, join } from 'path' |
4 | import { VideoCreate, VideoPrivacy, VideoUpdate } from '../../../../shared' | 4 | import { VideoCreate, VideoPrivacy, VideoUpdate } from '../../../../shared' |
5 | import { | 5 | import { |
6 | fetchRemoteVideoDescription, | ||
7 | generateRandomString, | 6 | generateRandomString, |
8 | getFormattedObjects, | 7 | getFormattedObjects, |
9 | getVideoFileHeight, | 8 | getVideoFileHeight, |
@@ -12,7 +11,6 @@ import { | |||
12 | resetSequelizeInstance, | 11 | resetSequelizeInstance, |
13 | retryTransactionWrapper | 12 | retryTransactionWrapper |
14 | } from '../../../helpers' | 13 | } from '../../../helpers' |
15 | import { getVideoActivityPubUrl, shareVideoByServer } from '../../../helpers/activitypub' | ||
16 | import { CONFIG, VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_MIMETYPE_EXT, VIDEO_PRIVACIES } from '../../../initializers' | 14 | import { CONFIG, VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_MIMETYPE_EXT, VIDEO_PRIVACIES } from '../../../initializers' |
17 | import { database as db } from '../../../initializers/database' | 15 | import { database as db } from '../../../initializers/database' |
18 | import { sendAddVideo } from '../../../lib/activitypub/send/send-add' | 16 | import { sendAddVideo } from '../../../lib/activitypub/send/send-add' |
@@ -37,6 +35,9 @@ import { abuseVideoRouter } from './abuse' | |||
37 | import { blacklistRouter } from './blacklist' | 35 | import { blacklistRouter } from './blacklist' |
38 | import { videoChannelRouter } from './channel' | 36 | import { videoChannelRouter } from './channel' |
39 | import { rateVideoRouter } from './rate' | 37 | import { rateVideoRouter } from './rate' |
38 | import { getVideoActivityPubUrl } from '../../../lib/activitypub/url' | ||
39 | import { shareVideoByServer } from '../../../lib/activitypub/share' | ||
40 | import { fetchRemoteVideoDescription } from '../../../lib/activitypub/videos' | ||
40 | 41 | ||
41 | const videosRouter = express.Router() | 42 | const videosRouter = express.Router() |
42 | 43 | ||