mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 07:48:12 +08:00
b1cb95fc23
* FEATURE: Introducing new UI for tracking User's ignored or muted states
10 lines
223 B
Ruby
10 lines
223 B
Ruby
module Jobs
|
|
class PurgeExpiredIgnoredUsers < Jobs::Scheduled
|
|
every 1.day
|
|
|
|
def execute(args)
|
|
IgnoredUser.where("created_at <= ? OR expiring_at <= ?", 4.months.ago, Time.zone.now).delete_all
|
|
end
|
|
end
|
|
end
|