FIX: sync users bookmark state when splitting topics

This commit is contained in:
Arpit Jalan 2016-03-16 12:45:54 +05:30
parent 978fb61cdf
commit 9c77a18975
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ class PostMover
def update_statistics def update_statistics
destination_topic.update_statistics destination_topic.update_statistics
original_topic.update_statistics original_topic.update_statistics
TopicUser.update_post_action_cache(topic_id: original_topic.id, post_action_type: :bookmark)
TopicUser.update_post_action_cache(topic_id: destination_topic.id, post_action_type: :bookmark)
end end
def update_user_actions def update_user_actions