mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Don't count moderator actions in the user directory stats
This commit is contained in:
parent
9f22be2865
commit
605fe4b11d
1 changed files with 3 additions and 1 deletions
|
@ -54,6 +54,7 @@ class DirectoryItem < ActiveRecord::Base
|
|||
AND p.deleted_at IS NULL
|
||||
AND NOT (COALESCE(p.hidden, false))
|
||||
AND NOT COALESCE(c.read_restricted, false)
|
||||
AND p.post_type != :moderator_action
|
||||
AND u.id > 0
|
||||
GROUP BY u.id",
|
||||
period_type: period_types[period_type],
|
||||
|
@ -61,6 +62,7 @@ class DirectoryItem < ActiveRecord::Base
|
|||
like_type: UserAction::LIKE,
|
||||
was_liked_type: UserAction::WAS_LIKED,
|
||||
new_topic_type: UserAction::NEW_TOPIC,
|
||||
reply_type: UserAction::REPLY
|
||||
reply_type: UserAction::REPLY,
|
||||
moderator_action: Post.types[:moderator_action]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue