diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-20 09:43:39 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 54141398354e6e7b94aa3065a705a1251390111c (patch) | |
tree | 8d30d1b9ea8acbe04f6d404125b04fc0c9897b70 /server/models/video/video-channel.ts | |
parent | eb8b27c93e61a896a08923dc1ca3c87ba8cf4948 (diff) | |
download | PeerTube-54141398354e6e7b94aa3065a705a1251390111c.tar.gz PeerTube-54141398354e6e7b94aa3065a705a1251390111c.tar.zst PeerTube-54141398354e6e7b94aa3065a705a1251390111c.zip |
Refractor activity pub lib/helpers
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r-- | server/models/video/video-channel.ts | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index f8414d4a8..93566a5c6 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts | |||
@@ -1,17 +1,11 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | 2 | import { isVideoChannelDescriptionValid, isVideoChannelNameValid } from '../../helpers' | |
3 | import { isVideoChannelNameValid, isVideoChannelDescriptionValid } from '../../helpers' | ||
4 | |||
5 | import { addMethodsToModel, getSort } from '../utils' | ||
6 | import { | ||
7 | VideoChannelInstance, | ||
8 | VideoChannelAttributes, | ||
9 | |||
10 | VideoChannelMethods | ||
11 | } from './video-channel-interface' | ||
12 | import { sendDeleteVideoChannel } from '../../lib/activitypub/send-request' | ||
13 | import { isVideoChannelUrlValid } from '../../helpers/custom-validators/video-channels' | 3 | import { isVideoChannelUrlValid } from '../../helpers/custom-validators/video-channels' |
14 | import { CONSTRAINTS_FIELDS } from '../../initializers/constants' | 4 | import { CONSTRAINTS_FIELDS } from '../../initializers/constants' |
5 | import { sendDeleteVideoChannel } from '../../lib/activitypub/send/send-delete' | ||
6 | |||
7 | import { addMethodsToModel, getSort } from '../utils' | ||
8 | import { VideoChannelAttributes, VideoChannelInstance, VideoChannelMethods } from './video-channel-interface' | ||
15 | 9 | ||
16 | let VideoChannel: Sequelize.Model<VideoChannelInstance, VideoChannelAttributes> | 10 | let VideoChannel: Sequelize.Model<VideoChannelInstance, VideoChannelAttributes> |
17 | let toFormattedJSON: VideoChannelMethods.ToFormattedJSON | 11 | let toFormattedJSON: VideoChannelMethods.ToFormattedJSON |