mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
Minor follow-up bug fix for 5ff6c10.
This commit is contained in:
@ -126,7 +126,7 @@ class TopicTimer < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def schedule_auto_open_job(time)
|
||||
topic.update_status('closed', true, user) if !topic&.closed
|
||||
topic.update_status('closed', true, user) if topic && !topic.closed
|
||||
|
||||
Jobs.enqueue_at(time, :toggle_topic_closed,
|
||||
topic_timer_id: id,
|
||||
|
Reference in New Issue
Block a user