forked from indymedia/epicyon
Only add to replies index if incoming post is not a DM
parent
52679a8491
commit
e8c45a272f
5
inbox.py
5
inbox.py
|
@ -2104,7 +2104,8 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
|
|
||||||
if not isGroup:
|
if not isGroup:
|
||||||
# create a DM notification file if needed
|
# create a DM notification file if needed
|
||||||
if isDM(postJsonObject):
|
postIsDM = isDM(postJsonObject)
|
||||||
|
if postIsDM:
|
||||||
if nickname != 'inbox':
|
if nickname != 'inbox':
|
||||||
followDMsFilename = \
|
followDMsFilename = \
|
||||||
baseDir + '/accounts/' + \
|
baseDir + '/accounts/' + \
|
||||||
|
@ -2147,7 +2148,7 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
'/users/' + handle.split('@')[0]
|
'/users/' + handle.split('@')[0]
|
||||||
|
|
||||||
# create a reply notification file if needed
|
# create a reply notification file if needed
|
||||||
if isReply(postJsonObject, actor):
|
if not postIsDM and isReply(postJsonObject, actor):
|
||||||
if nickname != 'inbox':
|
if nickname != 'inbox':
|
||||||
# replies index will be updated
|
# replies index will be updated
|
||||||
updateIndexList.append('tlreplies')
|
updateIndexList.append('tlreplies')
|
||||||
|
|
Loading…
Reference in New Issue