bug: if status changes always attempt to update the feature topics for the category right away

This commit is contained in:
Sam 2013-12-02 16:32:24 +11:00
parent 5e0b22365a
commit 7f4697a200

View file

@ -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)