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.')
}
}
- return
+ return undefined
}
// ---------------------------------------------------------------------------