From c392da197eba420afe0317cecc700410dfc7925d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 3 Sep 2019 12:27:21 +0100 Subject: [PATCH] Handle replies from blocked domains --- inbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 2fc12757..f1d32343 100644 --- a/inbox.py +++ b/inbox.py @@ -212,7 +212,7 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str, \ replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo']) replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo']) if replyNickname and replyDomain: - if isBlocked(baseDir,nickname,domain,postNickname,postDomain): + if isBlocked(baseDir,nickname,domain,replyNickname,replyDomain): print('WARN: post contains reply to a blocked account: '+replyNickname+'@'+replyDomain) return None if postJsonObject['object'].get('content'):