Experimentally allow replies to unidentified accounts. Checks can be done later

main2
Bob Mottram 2019-10-21 11:51:49 +01:00
parent 11073cb1f7
commit 133c858884
1 changed files with 3 additions and 3 deletions

View File

@ -247,9 +247,9 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str, \
if isBlocked(baseDir,nickname,domain,replyNickname,replyDomain): if isBlocked(baseDir,nickname,domain,replyNickname,replyDomain):
print('WARN: post contains reply from '+str(actor)+' to a blocked account: '+replyNickname+'@'+replyDomain) print('WARN: post contains reply from '+str(actor)+' to a blocked account: '+replyNickname+'@'+replyDomain)
return None return None
else: #else:
print('WARN: post is a reply to an unidentified account: '+postJsonObject['object']['inReplyTo']) # print('WARN: post is a reply to an unidentified account: '+postJsonObject['object']['inReplyTo'])
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):
if isFiltered(baseDir,nickname,domain,postJsonObject['object']['content']): if isFiltered(baseDir,nickname,domain,postJsonObject['object']['content']):