From e1a7855f3a1f78d152be4bd6a99b5e3747085c87 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Fri, 19 Jun 2015 12:55:35 -0400 Subject: [PATCH] Allow pinned field to be updated via PUT --- api/comment_threads.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/comment_threads.rb b/api/comment_threads.rb index 63031c27ad9..ae8d275b446 100644 --- a/api/comment_threads.rb +++ b/api/comment_threads.rb @@ -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