diff --git a/app/models/user.rb b/app/models/user.rb index e80172d8f8b..9bc8eacb613 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -488,7 +488,7 @@ class User < ActiveRecord::Base end def update_topic_reply_count - topic_reply_count = + self.topic_reply_count = Topic .where(['id in ( SELECT topic_id FROM posts p