mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 15:46:16 +08:00
make sure we do not count system user's posts
This commit is contained in:
parent
2cecc0b21f
commit
fd36fa1c2f
|
@ -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 New Issue
Block a user