mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:01:20 +08:00
Revert "FIX: Topic Timer auto opening closed topics (#10524)"
This reverts commit 7cfd5f87ff16d3010274851b7442aa92c2d494d6.
This commit is contained in:
@ -463,15 +463,6 @@ class TopicsController < ApplicationController
|
||||
options.merge!(category_id: params[:category_id]) if !params[:category_id].blank?
|
||||
options.merge!(duration: params[:duration].to_i) if params[:duration].present?
|
||||
|
||||
# Be sure to close/open the topic when setting an auto-open/auto-close timer
|
||||
if status_type == TopicTimer.types[:open]
|
||||
topic.update_status('closed', true, current_user) if !topic.closed
|
||||
end
|
||||
|
||||
if status_type == TopicTimer.types[:close]
|
||||
topic.update_status('closed', false, current_user) if topic.closed
|
||||
end
|
||||
|
||||
topic_status_update = topic.set_or_create_timer(
|
||||
status_type,
|
||||
params[:time],
|
||||
|
Reference in New Issue
Block a user