mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Stop having things silently fail.
This commit is contained in:
parent
1a6624960d
commit
e72684f9dc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue