diff --git a/app/models/topic.rb b/app/models/topic.rb index 77f2e0afd75..0787d52734c 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -552,7 +552,7 @@ class Topic < ActiveRecord::Base if new_post.present? # If we are moving posts, we want to insert the moderator post where the previous posts were # in the stream, not at the end. - new_post.update_attributes(post_number: opts[:post_number], sort_order: opts[:post_number]) if opts[:post_number].present? + new_post.update_attributes!(post_number: opts[:post_number], sort_order: opts[:post_number]) if opts[:post_number].present? # Grab any links that are present TopicLink.extract_from(new_post)