Ensure we don't receive things from local actors

pull/3720/head
Chocobozzz 2021-02-08 16:06:32 +01:00
parent 0c39df2536
commit 3933a127d2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ async function activityPubValidator (req: express.Request, res: express.Response
const serverActor = await getServerActor()
const remoteActor = res.locals.signature.actor
if (serverActor.id === remoteActor.id) {
if (serverActor.id === remoteActor.id || remoteActor.serverId === null) {
logger.error('Receiving request in INBOX by ourselves!', req.body)
return res.status(HttpStatusCode.CONFLICT_409)
.end()