Marking posts as read

merge-requests/30/head
Bob Mottram 2021-03-23 10:39:35 +00:00
parent dbad3f2fbd
commit e422d29021
1 changed files with 1 additions and 1 deletions

View File

@ -673,7 +673,7 @@ def _readLocalBoxPost(session, nickname: str, domain: str,
# if the post is addressed to you then mark it as read
if _postIsToYou(yourActor, postJsonObject):
if isDM(postJsonObject['id']):
if isDM(postJsonObject):
_markPostAsRead(yourActor, postJsonObject['id'], 'dm')
else:
_markPostAsRead(yourActor, postJsonObject['id'], 'replies')