A platform for community discussion. Free, open, simple.
make rubocop happy
Vinoth Kannan2ae87a27fa09
diff --git a/app/models/user_stat.rb b/app/models/user_stat.rbindex a1b39d551d2..2aabbdbf32c 100644--- a/app/models/user_stat.rb+++ b/app/models/user_stat.rb@@ -128,12 +128,11 @@ class UserStat < ActiveRecord::Base# topic_reply_count is a count of posts in other users' topicsdef update_topic_reply_count- self.topic_reply_count =- Topic- .joins("INNER JOIN posts ON topics.id = posts.topic_id AND topics.user_id <> posts.user_id")- .where("posts.deleted_at IS NULL AND posts.user_id = ?", self.user_id)- .distinct- .count+ self.topic_reply_count = Topic+ .joins("INNER JOIN posts ON topics.id = posts.topic_id AND topics.user_id <> posts.user_id")+ .where("posts.deleted_at IS NULL AND posts.user_id = ?", self.user_id)+ .distinct+ .countendMAX_TIME_READ_DIFF = 100