mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 02:49:29 +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 p.deleted_at IS NULL
|
||||||
AND NOT p.hidden
|
AND NOT p.hidden
|
||||||
AND post_type = #{Post.types[:regular]}
|
AND post_type = #{Post.types[:regular]}
|
||||||
|
AND user_id <> #{Discourse.system_user.id}
|
||||||
GROUP BY topic_id"
|
GROUP BY topic_id"
|
||||||
|
|
||||||
TopTopic.update_top_topics(period, "posts", sql)
|
TopTopic.update_top_topics(period, "posts", sql)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user