From 7f4697a2005c13d93bf9973a53a1e3ab1c202677 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 2 Dec 2013 16:32:24 +1100 Subject: [PATCH] bug: if status changes always attempt to update the feature topics for the category right away --- app/models/topic_status_update.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/topic_status_update.rb b/app/models/topic_status_update.rb index a9769df3c6d..8f07cf53b79 100644 --- a/app/models/topic_status_update.rb +++ b/app/models/topic_status_update.rb @@ -25,6 +25,10 @@ TopicStatusUpdate = Struct.new(:topic, :user) do if status.manually_closing_topic? && topic.auto_close_at topic.reload.set_auto_close(nil).save end + + # pick up the changes right away as opposed to waiting for + # the schedule + CategoryFeaturedTopic.feature_topics_for(topic.category) end def create_moderator_post_for(status)