mirror of https://gitlab.com/bashrc2/epicyon
Handle replies from blocked domains
parent
832c1cd39b
commit
c392da197e
2
inbox.py
2
inbox.py
|
@ -212,7 +212,7 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str, \
|
||||||
replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
|
replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
|
||||||
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,replyNickname,replyDomain):
|
||||||
print('WARN: post contains reply to a blocked account: '+replyNickname+'@'+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'):
|
||||||
|
|
Loading…
Reference in New Issue