diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-13 17:39:41 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 7a7724e66e4533523083e7336cd0d0c747c4a33b (patch) | |
tree | 805299eb9c6829158cd17e5a823a84a3a54d8209 /server/models/video/video-channel.ts | |
parent | 571389d43b8fc8aaf27e77c06f19b320b08dbbc9 (diff) | |
download | PeerTube-7a7724e66e4533523083e7336cd0d0c747c4a33b.tar.gz PeerTube-7a7724e66e4533523083e7336cd0d0c747c4a33b.tar.zst PeerTube-7a7724e66e4533523083e7336cd0d0c747c4a33b.zip |
Handle follow/accept
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 |