Fix lint
This commit is contained in:
parent
72680feb34
commit
e3bb78a213
|
@ -8,7 +8,7 @@ async function addFetchOutboxJob (actor: ActorModel) {
|
||||||
const serverActor = await getServerActor()
|
const serverActor = await getServerActor()
|
||||||
if (serverActor.id === actor.id) {
|
if (serverActor.id === actor.id) {
|
||||||
logger.error('Cannot fetch our own outbox!')
|
logger.error('Cannot fetch our own outbox!')
|
||||||
return
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
const payload = {
|
const payload = {
|
||||||
|
|
|
@ -18,7 +18,7 @@ const activityPubValidator = [
|
||||||
const remoteActor = res.locals.signature.actor as ActorModel
|
const remoteActor = res.locals.signature.actor as ActorModel
|
||||||
if (serverActor.id === remoteActor.id) {
|
if (serverActor.id === remoteActor.id) {
|
||||||
logger.error('Receiving request in INBOX by ourselves!', req.body)
|
logger.error('Receiving request in INBOX by ourselves!', req.body)
|
||||||
return res.sendStatus(409)
|
return res.status(409).end()
|
||||||
}
|
}
|
||||||
|
|
||||||
return next()
|
return next()
|
||||||
|
|
Loading…
Reference in New Issue