mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:50:14 +08:00
852860de66
- All unsubscribes go to the exact same page - You may unsubscribe from watching a category on that page - You no longer need to be logged in to unsubscribe from a topic - Simplified footer on emails
14 lines
192 B
Ruby
14 lines
192 B
Ruby
module Jobs
|
|
|
|
class CleanUpUnsubscribeKeys < Jobs::Scheduled
|
|
every 1.day
|
|
|
|
def execute(args)
|
|
UnsubscribeKey.where('created_at < ?', 2.months.ago).delete_all
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|