master
Bob Mottram 2019-09-01 21:00:45 +01:00
parent 3aec37b47e
commit 8f23742234
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str, \
replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo']) replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo'])
if replyNickname and replyDomain: if replyNickname and replyDomain:
if isBlocked(baseDir,nickname,domain,postNickname,postDomain): if isBlocked(baseDir,nickname,domain,postNickname,postDomain):
print('WARN: post contains reply to a blocked domain: '+replyDomain) print('WARN: post contains reply to a blocked account: '+replyNickname+'@'+replyDomain)
return None return None
if postJsonObject['object'].get('content'): if postJsonObject['object'].get('content'):
if isinstance(postJsonObject['object']['content'], str): if isinstance(postJsonObject['object']['content'], str):