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/controllers/activitypub/videos.ts | |
parent | 571389d43b8fc8aaf27e77c06f19b320b08dbbc9 (diff) | |
download | PeerTube-7a7724e66e4533523083e7336cd0d0c747c4a33b.tar.gz PeerTube-7a7724e66e4533523083e7336cd0d0c747c4a33b.tar.zst PeerTube-7a7724e66e4533523083e7336cd0d0c747c4a33b.zip |
Handle follow/accept
Diffstat (limited to 'server/controllers/activitypub/videos.ts')
-rw-r--r-- | server/controllers/activitypub/videos.ts | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/server/controllers/activitypub/videos.ts b/server/controllers/activitypub/videos.ts index a9b31bf75..98894379f 100644 --- a/server/controllers/activitypub/videos.ts +++ b/server/controllers/activitypub/videos.ts | |||
@@ -224,67 +224,6 @@ | |||
224 | // logger.info('Remote video with uuid %s quick and dirty updated', videoUUID) | 224 | // logger.info('Remote video with uuid %s quick and dirty updated', videoUUID) |
225 | // } | 225 | // } |
226 | // | 226 | // |
227 | // async function removeRemoteVideoRetryWrapper (videoToRemoveData: RemoteVideoRemoveData, fromPod: PodInstance) { | ||
228 | // const options = { | ||
229 | // arguments: [ videoToRemoveData, fromPod ], | ||
230 | // errorMessage: 'Cannot remove the remote video channel with many retries.' | ||
231 | // } | ||
232 | // | ||
233 | // await retryTransactionWrapper(removeRemoteVideo, options) | ||
234 | // } | ||
235 | // | ||
236 | // async function removeRemoteVideo (videoToRemoveData: RemoteVideoRemoveData, fromPod: PodInstance) { | ||
237 | // logger.debug('Removing remote video "%s".', videoToRemoveData.uuid) | ||
238 | // | ||
239 | // await db.sequelize.transaction(async t => { | ||
240 | // // We need the instance because we have to remove some other stuffs (thumbnail etc) | ||
241 | // const videoInstance = await fetchVideoByHostAndUUID(fromPod.host, videoToRemoveData.uuid, t) | ||
242 | // await videoInstance.destroy({ transaction: t }) | ||
243 | // }) | ||
244 | // | ||
245 | // logger.info('Remote video with uuid %s removed.', videoToRemoveData.uuid) | ||
246 | // } | ||
247 | // | ||
248 | // async function removeRemoteVideoAccountRetryWrapper (accountAttributesToRemove: RemoteVideoAccountRemoveData, fromPod: PodInstance) { | ||
249 | // const options = { | ||
250 | // arguments: [ accountAttributesToRemove, fromPod ], | ||
251 | // errorMessage: 'Cannot remove the remote video account with many retries.' | ||
252 | // } | ||
253 | // | ||
254 | // await retryTransactionWrapper(removeRemoteVideoAccount, options) | ||
255 | // } | ||
256 | // | ||
257 | // async function removeRemoteVideoAccount (accountAttributesToRemove: RemoteVideoAccountRemoveData, fromPod: PodInstance) { | ||
258 | // logger.debug('Removing remote video account "%s".', accountAttributesToRemove.uuid) | ||
259 | // | ||
260 | // await db.sequelize.transaction(async t => { | ||
261 | // const videoAccount = await db.Account.loadAccountByPodAndUUID(accountAttributesToRemove.uuid, fromPod.id, t) | ||
262 | // await videoAccount.destroy({ transaction: t }) | ||
263 | // }) | ||
264 | // | ||
265 | // logger.info('Remote video account with uuid %s removed.', accountAttributesToRemove.uuid) | ||
266 | // } | ||
267 | // | ||
268 | // async function removeRemoteVideoChannelRetryWrapper (videoChannelAttributesToRemove: RemoteVideoChannelRemoveData, fromPod: PodInstance) { | ||
269 | // const options = { | ||
270 | // arguments: [ videoChannelAttributesToRemove, fromPod ], | ||
271 | // errorMessage: 'Cannot remove the remote video channel with many retries.' | ||
272 | // } | ||
273 | // | ||
274 | // await retryTransactionWrapper(removeRemoteVideoChannel, options) | ||
275 | // } | ||
276 | // | ||
277 | // async function removeRemoteVideoChannel (videoChannelAttributesToRemove: RemoteVideoChannelRemoveData, fromPod: PodInstance) { | ||
278 | // logger.debug('Removing remote video channel "%s".', videoChannelAttributesToRemove.uuid) | ||
279 | // | ||
280 | // await db.sequelize.transaction(async t => { | ||
281 | // const videoChannel = await fetchVideoChannelByHostAndUUID(fromPod.host, videoChannelAttributesToRemove.uuid, t) | ||
282 | // await videoChannel.destroy({ transaction: t }) | ||
283 | // }) | ||
284 | // | ||
285 | // logger.info('Remote video channel with uuid %s removed.', videoChannelAttributesToRemove.uuid) | ||
286 | // } | ||
287 | // | ||
288 | // async function reportAbuseRemoteVideoRetryWrapper (reportData: RemoteVideoReportAbuseData, fromPod: PodInstance) { | 227 | // async function reportAbuseRemoteVideoRetryWrapper (reportData: RemoteVideoReportAbuseData, fromPod: PodInstance) { |
289 | // const options = { | 228 | // const options = { |
290 | // arguments: [ reportData, fromPod ], | 229 | // arguments: [ reportData, fromPod ], |