Fix lint
This commit is contained in:
parent
72680feb34
commit
e3bb78a213
|
@ -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 = {
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue