mirror of https://gitlab.com/bashrc2/epicyon
Account
parent
3aec37b47e
commit
8f23742234
2
inbox.py
2
inbox.py
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue