Merge pull request #4536 from fantasticfears/webhooks-edit

FIX: missing post and topic edited webhooks
This commit is contained in:
Guo Xiang Tan
2016-12-02 10:16:19 +01:00
committed by GitHub
3 changed files with 16 additions and 13 deletions

View File

@@ -446,6 +446,7 @@ class PostRevisor
def post_process_post
@post.invalidate_oneboxes = true
@post.trigger_post_process
DiscourseEvent.trigger(:post_edited, @post, self.topic_changed?)
end
def update_topic_word_counts