Commit fdc30dd6 by Waqas Khalid

Number of post are incorrect becuase deletion of comments doesn't perform…

Number of post are incorrect becuase deletion of comments doesn't perform deletion of subcomments one by one which cause magical comment counter not to decrese the counter properly
TNL-91
parent ffb1dcfb
...@@ -56,7 +56,7 @@ class Comment < Content ...@@ -56,7 +56,7 @@ class Comment < Content
counter_cache :comment_thread counter_cache :comment_thread
before_destroy :delete_descendants # TODO async before_destroy :destroy_children # TODO async
before_create :set_thread_last_activity_at before_create :set_thread_last_activity_at
before_update :set_thread_last_activity_at before_update :set_thread_last_activity_at
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment