More checks on replyto

merge-requests/30/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': if nickname != 'inbox':
# replies index will be updated # replies index will be updated
updateIndexList.append('tlreplies') updateIndexList.append('tlreplies')
if not isMuted(baseDir, nickname, domain, inReplyTo = postJsonObject['object']['inReplyTo']
postJsonObject['object']['inReplyTo']): if inReplyTo:
replyNotify(baseDir, handle, if isinstance(inReplyTo, str):
httpPrefix + '://' + domain + if not isMuted(baseDir, nickname, domain,
'/users/' + nickname + '/tlreplies') inReplyTo):
else: replyNotify(baseDir, handle,
isReplyToMutedPost = True httpPrefix + '://' + domain +
'/users/' + nickname +
'/tlreplies')
else:
isReplyToMutedPost = True
if isImageMedia(session, baseDir, httpPrefix, if isImageMedia(session, baseDir, httpPrefix,
nickname, domain, postJsonObject, nickname, domain, postJsonObject,