mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
FIX: topic auto-close uses the client's time zone
This commit is contained in:
@ -107,7 +107,7 @@ class TopicCreator
|
||||
def setup_auto_close_time(topic)
|
||||
return unless @opts[:auto_close_time].present?
|
||||
return unless @guardian.can_moderate?(topic)
|
||||
topic.set_auto_close(@opts[:auto_close_time], @user)
|
||||
topic.set_auto_close(@opts[:auto_close_time], {by_user: @user})
|
||||
end
|
||||
|
||||
def process_private_message(topic)
|
||||
|
Reference in New Issue
Block a user