mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-20 20:42:44 -05: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
13 lines
192 B
Ruby
13 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
|
|
|