Skip to content

Commit

Permalink
Merge pull request #130 from edx/gprice/edit-pinned
Browse files Browse the repository at this point in the history
Allow pinned field to be updated via PUT
  • Loading branch information
Greg Price committed Jun 19, 2015
2 parents 5e13292 + e1a7855 commit 8d83377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/comment_threads.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

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
Expand Down

0 comments on commit 8d83377

Please sign in to comment.