mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:22:40 +08:00
FIX: Do not include non-human users on suspected users list.
https://meta.discourse.org/t/discobot-is-a-suspect-user/70558
This commit is contained in:
@ -81,6 +81,7 @@ class AdminUserIndexQuery
|
||||
where_conds << "user_stats.posts_read_count <= 1 AND user_stats.topics_entered <= 1"
|
||||
|
||||
@query.activated
|
||||
.human_users
|
||||
.references(:user_stats)
|
||||
.includes(:user_profile)
|
||||
.where("COALESCE(user_profiles.bio_raw, '') != ''")
|
||||
|
Reference in New Issue
Block a user