diff options
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 ], |