mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 15:54:48 -05:00
UX: Publish changes to TopicView when Topic is updated.
This commit is contained in:
committed by
Régis Hanol
parent
4e7e4cee7d
commit
6aa447816d
+8
-1
@@ -433,7 +433,14 @@ class PostRevisor
|
||||
end
|
||||
|
||||
def publish_changes
|
||||
@post.publish_change_to_clients!(:revised)
|
||||
options =
|
||||
if !@topic_changes.diff.empty? && !@topic_changes.errored?
|
||||
{ reload_topic: true }
|
||||
else
|
||||
{}
|
||||
end
|
||||
|
||||
@post.publish_change_to_clients!(:revised, options)
|
||||
end
|
||||
|
||||
def grant_badge
|
||||
|
||||
Reference in New Issue
Block a user