UX: Publish changes to TopicView when Topic is updated.

This commit is contained in:
Guo Xiang Tan
2016-04-07 16:29:01 +02:00
committed by Régis Hanol
parent 4e7e4cee7d
commit 6aa447816d
4 changed files with 37 additions and 10 deletions
+8 -1
View File
@@ -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