mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Disallow featuring hidden topics (#8814)
This commit is contained in:
committed by
GitHub
parent
dc34c24ffe
commit
089d38e9d3
@@ -42,6 +42,10 @@ TopicStatusUpdater = Struct.new(:topic, :user) do
|
||||
DiscourseEvent.trigger(:topic_closed, topic)
|
||||
end
|
||||
|
||||
if status.visible? && status.disabled?
|
||||
UserProfile.remove_featured_topic_from_all_profiles(topic)
|
||||
end
|
||||
|
||||
if @topic_status_update
|
||||
if status.manually_closing_topic? || status.closing_topic?
|
||||
topic.delete_topic_timer(TopicTimer.types[:close])
|
||||
|
||||
Reference in New Issue
Block a user