mirror of https://gitlab.com/bashrc2/epicyon
Don't send bounces to replies to bounces
parent
a9de85cb13
commit
cc35f03170
14
inbox.py
14
inbox.py
|
@ -2365,15 +2365,23 @@ def _inboxAfterInitial(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
nickname, domain,
|
nickname, domain,
|
||||||
sendH):
|
sendH):
|
||||||
# send back a bounce DM
|
# send back a bounce DM
|
||||||
if postJsonObject.get('id'):
|
if postJsonObject.get('id') and \
|
||||||
|
postJsonObject.get('object'):
|
||||||
|
# don't send bounces back to
|
||||||
|
# replies to bounce messages
|
||||||
|
obj = postJsonObject['object']
|
||||||
|
if isinstance(obj, dict):
|
||||||
|
if not obj.get('inReplyTo'):
|
||||||
senderPostId = \
|
senderPostId = \
|
||||||
postJsonObject['id']
|
postJsonObject['id']
|
||||||
_bounceDM(senderPostId,
|
_bounceDM(senderPostId,
|
||||||
session, httpPrefix,
|
session, httpPrefix,
|
||||||
baseDir, nickname, domain, port,
|
baseDir,
|
||||||
|
nickname, domain, port,
|
||||||
sendH, federationList,
|
sendH, federationList,
|
||||||
sendThreads, postLog,
|
sendThreads, postLog,
|
||||||
cachedWebfingers, personCache,
|
cachedWebfingers,
|
||||||
|
personCache,
|
||||||
translate, debug)
|
translate, debug)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue