mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
topic-status-info
component wasn't updated when topic is closed/opened.
This commit is contained in:
@ -273,7 +273,12 @@ class TopicsController < ApplicationController
|
||||
@topic = Topic.find_by(id: topic_id)
|
||||
guardian.ensure_can_moderate!(@topic)
|
||||
@topic.update_status(status, enabled, current_user, until: params[:until])
|
||||
render nothing: true
|
||||
|
||||
render json: success_json.merge!(
|
||||
topic_status_update: TopicStatusUpdateSerializer.new(
|
||||
TopicStatusUpdate.find_by(topic: @topic), root: false
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
def mute
|
||||
|
Reference in New Issue
Block a user