FEATURE: improve suspect user discovery

This commit is contained in:
Arpit Jalan
2019-12-02 16:10:58 +05:30
parent 374534f00e
commit 016732cced
2 changed files with 13 additions and 4 deletions

View File

@ -84,7 +84,7 @@ class AdminUserIndexQuery
.human_users
.joins(:user_profile, :user_stat)
.where("users.created_at <= ?", 1.day.ago)
.where("LENGTH(COALESCE(user_profiles.bio_raw, '')) > 0")
.where("LENGTH(COALESCE(user_profiles.bio_raw, user_profiles.website, '')) > 0")
.where("user_stats.posts_read_count <= 1 AND user_stats.topics_entered <= 1")
end