Skip to content

Commit 8d83377

Browse files
author
Greg Price
committed
Merge pull request #130 from edx/gprice/edit-pinned
Allow pinned field to be updated via PUT
2 parents 5e13292 + e1a7855 commit 8d83377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/comment_threads.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
put "#{APIPREFIX}/threads/:thread_id" do |thread_id|
5454
filter_blocked_content params["body"]
55-
thread.update_attributes(params.slice(*%w[title body closed commentable_id group_id thread_type]))
55+
thread.update_attributes(params.slice(*%w[title body pinned closed commentable_id group_id thread_type]))
5656

5757
if thread.errors.any?
5858
error 400, thread.errors.full_messages.to_json

0 commit comments

Comments
 (0)