mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
make sure we do not count system user's posts
This commit is contained in:
parent
2cecc0b21f
commit
fd36fa1c2f
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ class TopTopic < ActiveRecord::Base
|
|||
AND p.deleted_at IS NULL
|
||||
AND NOT p.hidden
|
||||
AND post_type = #{Post.types[:regular]}
|
||||
AND user_id <> #{Discourse.system_user.id}
|
||||
GROUP BY topic_id"
|
||||
|
||||
TopTopic.update_top_topics(period, "posts", sql)
|
||||
|
|
Loading…
Reference in a new issue