diff options
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r-- | server/lib/activitypub/process/process-undo.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/activitypub/process/process-undo.ts b/server/lib/activitypub/process/process-undo.ts index ed0177a67..2d48848fe 100644 --- a/server/lib/activitypub/process/process-undo.ts +++ b/server/lib/activitypub/process/process-undo.ts | |||
@@ -108,7 +108,10 @@ async function processUndoCacheFile (byActor: ActorModel, activity: ActivityUndo | |||
108 | 108 | ||
109 | return sequelizeTypescript.transaction(async t => { | 109 | return sequelizeTypescript.transaction(async t => { |
110 | const cacheFile = await VideoRedundancyModel.loadByUrl(cacheFileObject.id) | 110 | const cacheFile = await VideoRedundancyModel.loadByUrl(cacheFileObject.id) |
111 | if (!cacheFile) throw new Error('Unknown video cache ' + cacheFileObject.id) | 111 | if (!cacheFile) { |
112 | logger.debug('Cannot undo unknown video cache %s.', cacheFileObject.id) | ||
113 | return | ||
114 | } | ||
112 | 115 | ||
113 | if (cacheFile.actorId !== byActor.id) throw new Error('Cannot delete redundancy ' + cacheFile.url + ' of another actor.') | 116 | if (cacheFile.actorId !== byActor.id) throw new Error('Cannot delete redundancy ' + cacheFile.url + ' of another actor.') |
114 | 117 | ||