FIX: Admins should be able to post short titles. This is especially important for when syndicating

a blog via the wordpress plugin into Discourse.
This commit is contained in:
Robin Ward
2013-06-29 17:57:10 -04:00
parent e076661759
commit 023d18cab2
3 changed files with 32 additions and 9 deletions

View File

@@ -185,8 +185,8 @@ class PostCreator
def setup_post
post = @topic.posts.new(raw: @opts[:raw],
user: @user,
reply_to_post_number: @opts[:reply_to_post_number])
user: @user,
reply_to_post_number: @opts[:reply_to_post_number])
# Attributes we pass through to the post instance if present
[:post_type, :no_bump, :cooking_options, :image_sizes, :acting_user, :invalidate_oneboxes].each do |a|