mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05: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
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue