Commit 8d83377b by Greg Price

Merge pull request #130 from edx/gprice/edit-pinned

Allow pinned field to be updated via PUT
parents 5e13292e e1a7855f
...@@ -52,7 +52,7 @@ end ...@@ -52,7 +52,7 @@ end
put "#{APIPREFIX}/threads/:thread_id" do |thread_id| put "#{APIPREFIX}/threads/:thread_id" do |thread_id|
filter_blocked_content params["body"] 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? if thread.errors.any?
error 400, thread.errors.full_messages.to_json 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