FIX: setting owner on topic should not bump topic

This commit is contained in:
Sam Saffron
2016-03-17 08:32:27 +11:00
parent 20ce7f29e0
commit 8577b7e2cc
2 changed files with 4 additions and 1 deletions

View File

@@ -439,7 +439,7 @@ class Post < ActiveRecord::Base
new_user: new_user.username_lower
)
revise(actor, { raw: self.raw, user_id: new_user.id, edit_reason: edit_reason })
revise(actor, {raw: self.raw, user_id: new_user.id, edit_reason: edit_reason}, bypass_bump: true)
if post_number == topic.highest_post_number
topic.update_columns(last_post_user_id: new_user.id)