mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:14:44 +08:00
FIX: a topic should be visited when you've read everything and there's deleted posts at the end
This commit is contained in:
@ -37,7 +37,8 @@ const Topic = RestModel.extend({
|
||||
|
||||
@computed('last_read_post_number', 'highest_post_number')
|
||||
visited(lastReadPostNumber, highestPostNumber) {
|
||||
return lastReadPostNumber === highestPostNumber;
|
||||
// >= to handle case where there are deleted posts at the end of the topic
|
||||
return lastReadPostNumber >= highestPostNumber;
|
||||
},
|
||||
|
||||
@computed('posters.firstObject')
|
||||
|
Reference in New Issue
Block a user