mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Refractor activities sending
This commit is contained in:
parent
d61b817890
commit
a2377d15ee
11 changed files with 140 additions and 155 deletions
|
@ -41,6 +41,8 @@ async function processDeleteActivity (activity: ActivityDelete) {
|
|||
{
|
||||
const videoInstance = await VideoModel.loadByUrlAndPopulateAccount(objectUrl)
|
||||
if (videoInstance) {
|
||||
if (videoInstance.isOwned()) throw new Error(`Remote instance cannot delete owned video ${videoInstance.url}.`)
|
||||
|
||||
return retryTransactionWrapper(processDeleteVideo, actor, videoInstance)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue