discourse/app/jobs/regular/clear_slow_mode.rb

11 lines
247 B
Ruby

# frozen_string_literal: true
module Jobs
class ClearSlowMode < ::Jobs::TopicTimerBase
def execute_timer_action(topic_timer, topic)
topic.update!(slow_mode_seconds: 0)
topic_timer.trash!(Discourse.system_user)
end
end
end