More checks on replyto

merge-requests/8/head
Bob Mottram 2020-08-28 15:28:59 +01:00
parent 89a0dc40db
commit 10a21e797b
1 changed files with 11 additions and 7 deletions

View File

@ -2355,13 +2355,17 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int,
if nickname != 'inbox':
# replies index will be updated
updateIndexList.append('tlreplies')
if not isMuted(baseDir, nickname, domain,
postJsonObject['object']['inReplyTo']):
replyNotify(baseDir, handle,
httpPrefix + '://' + domain +
'/users/' + nickname + '/tlreplies')
else:
isReplyToMutedPost = True
inReplyTo = postJsonObject['object']['inReplyTo']
if inReplyTo:
if isinstance(inReplyTo, str):
if not isMuted(baseDir, nickname, domain,
inReplyTo):
replyNotify(baseDir, handle,
httpPrefix + '://' + domain +
'/users/' + nickname +
'/tlreplies')
else:
isReplyToMutedPost = True
if isImageMedia(session, baseDir, httpPrefix,
nickname, domain, postJsonObject,