mirror of https://gitlab.com/bashrc2/epicyon
More checks on replyto
parent
89a0dc40db
commit
10a21e797b
18
inbox.py
18
inbox.py
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue