pull/311/head
Chocobozzz 2018-02-23 16:08:32 +01:00
parent 72680feb34
commit e3bb78a213
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ async function addFetchOutboxJob (actor: ActorModel) {
const serverActor = await getServerActor()
if (serverActor.id === actor.id) {
logger.error('Cannot fetch our own outbox!')
return
return undefined
}
const payload = {

View File

@ -18,7 +18,7 @@ const activityPubValidator = [
const remoteActor = res.locals.signature.actor as ActorModel
if (serverActor.id === remoteActor.id) {
logger.error('Receiving request in INBOX by ourselves!', req.body)
return res.sendStatus(409)
return res.status(409).end()
}
return next()