fix bug with topic response count not getting updated
This commit is contained in:
@@ -87,8 +87,9 @@ class ForumPost < ActiveRecord::Base
|
||||
|
||||
def update_topic_updated_at
|
||||
if topic
|
||||
topic.update_column(:updater_id, CurrentUser.id)
|
||||
topic.touch
|
||||
topic.updater_id = CurrentUser.id
|
||||
topic.response_count = topic.response_count + 1
|
||||
topic.save
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user