mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 07:23:15 +08:00
FIX: better fix for #ca84c06 (#6684)
This commit is contained in:
parent
f993aca363
commit
7f089f07a7
|
@ -373,7 +373,8 @@ const TopicTrackingState = Discourse.Model.extend({
|
|||
|
||||
countCategory(category_id) {
|
||||
let sum = 0;
|
||||
_.each(this.states, topic => {
|
||||
Object.keys(this.states).forEach(topicState => {
|
||||
const topic = this.states[topicState];
|
||||
if (topic.category_id === category_id && !topic.deleted) {
|
||||
sum +=
|
||||
topic.last_read_post_number === null ||
|
||||
|
|
Loading…
Reference in New Issue
Block a user