Commit e1a7855f by Greg Price

Allow pinned field to be updated via PUT

parent 5e13292e
......@@ -52,7 +52,7 @@ end
put "#{APIPREFIX}/threads/:thread_id" do |thread_id|
filter_blocked_content params["body"]
thread.update_attributes(params.slice(*%w[title body closed commentable_id group_id thread_type]))
thread.update_attributes(params.slice(*%w[title body pinned closed commentable_id group_id thread_type]))
if thread.errors.any?
error 400, thread.errors.full_messages.to_json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment