diff options
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r-- | server/models/video/video-channel.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index 183ff3436..919ec916d 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts | |||
@@ -9,6 +9,7 @@ import { | |||
9 | 9 | ||
10 | VideoChannelMethods | 10 | VideoChannelMethods |
11 | } from './video-channel-interface' | 11 | } from './video-channel-interface' |
12 | import { sendDeleteVideoChannel } from '../../lib/activitypub/send-request' | ||
12 | 13 | ||
13 | let VideoChannel: Sequelize.Model<VideoChannelInstance, VideoChannelAttributes> | 14 | let VideoChannel: Sequelize.Model<VideoChannelInstance, VideoChannelAttributes> |
14 | let toFormattedJSON: VideoChannelMethods.ToFormattedJSON | 15 | let toFormattedJSON: VideoChannelMethods.ToFormattedJSON |
@@ -176,11 +177,7 @@ function associate (models) { | |||
176 | 177 | ||
177 | function afterDestroy (videoChannel: VideoChannelInstance) { | 178 | function afterDestroy (videoChannel: VideoChannelInstance) { |
178 | if (videoChannel.isOwned()) { | 179 | if (videoChannel.isOwned()) { |
179 | const removeVideoChannelToFriendsParams = { | 180 | return sendDeleteVideoChannel(videoChannel, undefined) |
180 | uuid: videoChannel.uuid | ||
181 | } | ||
182 | |||
183 | // FIXME: send remove event to followers | ||
184 | } | 181 | } |
185 | 182 | ||
186 | return undefined | 183 | return undefined |