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,11 +2355,15 @@ 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')
inReplyTo = postJsonObject['object']['inReplyTo']
if inReplyTo:
if isinstance(inReplyTo, str):
if not isMuted(baseDir, nickname, domain, if not isMuted(baseDir, nickname, domain,
postJsonObject['object']['inReplyTo']): inReplyTo):
replyNotify(baseDir, handle, replyNotify(baseDir, handle,
httpPrefix + '://' + domain + httpPrefix + '://' + domain +
'/users/' + nickname + '/tlreplies') '/users/' + nickname +
'/tlreplies')
else: else:
isReplyToMutedPost = True isReplyToMutedPost = True