1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00
This commit is contained in:
Chocobozzz 2018-06-13 14:55:18 +02:00
parent 90d4bb8125
commit bcec136ee6
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 4 additions and 2 deletions

View file

@ -15,7 +15,7 @@ async function processDeleteActivity (activity: ActivityDelete) {
if (activity.actor === objectUrl) {
let actor = await ActorModel.loadByUrl(activity.actor)
if (!actor) return
if (!actor) return undefined
if (actor.type === 'Person') {
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) {
}
}
return
return undefined
}
// ---------------------------------------------------------------------------