mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
rename topic_status_update to topic_timer
This commit is contained in:
@@ -202,7 +202,7 @@ SQL
|
||||
t = Topic.new(title: I18n.t("category.topic_prefix", category: name), user: user, pinned_at: Time.now, category_id: id)
|
||||
t.skip_callbacks = true
|
||||
t.ignore_category_auto_close = true
|
||||
t.set_or_create_status_update(TopicStatusUpdate.types[:close], nil)
|
||||
t.set_or_create_timer(TopicTimer.types[:close], nil)
|
||||
t.save!(validate: false)
|
||||
update_column(:topic_id, t.id)
|
||||
t.posts.create(raw: post_template, user: user)
|
||||
|
||||
Reference in New Issue
Block a user