From 303f7e25722825302393da9612fb88305d045c70 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 18 Oct 2019 20:12:21 +0100 Subject: [PATCH] Report from with blocked posts --- inbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inbox.py b/inbox.py index 5420153ae..474f492ac 100644 --- a/inbox.py +++ b/inbox.py @@ -216,13 +216,13 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str, \ if isinstance(postJsonObject['object']['inReplyTo'], str): replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo']) if isBlockedDomain(baseDir,replyDomain): - print('WARN: post contains reply to a blocked domain: '+replyDomain) + print('WARN: post contains reply from '+str(actor)+' to a blocked domain: '+replyDomain) return None else: replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo']) if replyNickname and replyDomain: if isBlocked(baseDir,nickname,domain,replyNickname,replyDomain): - print('WARN: post contains reply to a blocked account: '+replyNickname+'@'+replyDomain) + print('WARN: post contains reply from '+str(actor)+' to a blocked account: '+replyNickname+'@'+replyDomain) return None else: print('WARN: post is a reply to an unidentified account: '+postJsonObject['object']['inReplyTo'])