Account for posts added by thread expansion when marking read from index.
This commit is contained in:
parent
14dbde2895
commit
a48e3c5b04
@ -94,13 +94,10 @@ UnreadIndex =
|
|||||||
|
|
||||||
markRead: ->
|
markRead: ->
|
||||||
thread = Get.threadFromNode @
|
thread = Get.threadFromNode @
|
||||||
if Index.enabled
|
lastPost = if Index.enabled then Index.lastPost(thread.ID) else 0
|
||||||
lastPost = Index.lastPost(thread.ID)
|
thread.posts.forEach (post) ->
|
||||||
else
|
if post.ID > lastPost and !post.isFetchedQuote
|
||||||
lastPost = 0
|
lastPost = post.ID
|
||||||
thread.posts.forEach (post) ->
|
|
||||||
if post.ID > lastPost and !post.isFetchedQuote
|
|
||||||
lastPost = post.ID
|
|
||||||
UnreadIndex.lastReadPost[thread.fullID] = lastPost
|
UnreadIndex.lastReadPost[thread.fullID] = lastPost
|
||||||
UnreadIndex.db.set
|
UnreadIndex.db.set
|
||||||
boardID: thread.board.ID
|
boardID: thread.board.ID
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user