mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -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
|
|
|