mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
@@ -9,7 +9,7 @@ module Jobs
|
||||
return if SiteSetting.clean_up_inactive_users_after_days <= 0
|
||||
|
||||
User.joins("LEFT JOIN posts ON posts.user_id = users.id")
|
||||
.where(last_posted_at: nil, trust_level: TrustLevel.levels[:newuser], admin: false)
|
||||
.where(last_posted_at: nil, trust_level: TrustLevel.levels[:newuser], admin: false, moderator: false)
|
||||
.where(
|
||||
"posts.user_id IS NULL AND users.last_seen_at < ?",
|
||||
SiteSetting.clean_up_inactive_users_after_days.days.ago
|
||||
|
||||
Reference in New Issue
Block a user