mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
bug: if status changes always attempt to update the feature topics for the category right away
This commit is contained in:
parent
5e0b22365a
commit
7f4697a200
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,10 @@ TopicStatusUpdate = Struct.new(:topic, :user) do
|
||||||
if status.manually_closing_topic? && topic.auto_close_at
|
if status.manually_closing_topic? && topic.auto_close_at
|
||||||
topic.reload.set_auto_close(nil).save
|
topic.reload.set_auto_close(nil).save
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# pick up the changes right away as opposed to waiting for
|
||||||
|
# the schedule
|
||||||
|
CategoryFeaturedTopic.feature_topics_for(topic.category)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_moderator_post_for(status)
|
def create_moderator_post_for(status)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue