diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/activitypub/process/process-delete.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/process/process-delete.ts b/server/lib/activitypub/process/process-delete.ts index ff0caa343..3c830abea 100644 --- a/server/lib/activitypub/process/process-delete.ts +++ b/server/lib/activitypub/process/process-delete.ts | |||
@@ -15,7 +15,7 @@ async function processDeleteActivity (activity: ActivityDelete) { | |||
15 | 15 | ||
16 | if (activity.actor === objectUrl) { | 16 | if (activity.actor === objectUrl) { |
17 | let actor = await ActorModel.loadByUrl(activity.actor) | 17 | let actor = await ActorModel.loadByUrl(activity.actor) |
18 | if (!actor) return | 18 | if (!actor) return undefined |
19 | 19 | ||
20 | if (actor.type === 'Person') { | 20 | if (actor.type === 'Person') { |
21 | if (!actor.Account) throw new Error('Actor ' + actor.url + ' is a person but we cannot find it in database.') | 21 | if (!actor.Account) throw new Error('Actor ' + actor.url + ' is a person but we cannot find it in database.') |
@@ -45,7 +45,7 @@ async function processDeleteActivity (activity: ActivityDelete) { | |||
45 | } | 45 | } |
46 | } | 46 | } |
47 | 47 | ||
48 | return | 48 | return undefined |
49 | } | 49 | } |
50 | 50 | ||
51 | // --------------------------------------------------------------------------- | 51 | // --------------------------------------------------------------------------- |