about summary refs log tree commit diff
diff options
context:
space:
mode:
authortrwnh <a@trwnh.com>2019-12-03 12:56:34 -0600
committerEugen Rochko <eugen@zeonfederated.com>2019-12-03 19:56:34 +0100
commit4354936a3983626d94a3594a36813e770e0dc87d (patch)
tree8650872dfc59a618b6e52f73b495de34c09eee70
parentc05ed8a6254bc82fda3ae0fd3934dc2cdcf7c82d (diff)
Return `discoverable` via REST API (fix #12507) (#12508)
-rw-r--r--app/serializers/rest/account_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/account_serializer.rb b/app/serializers/rest/account_serializer.rb
index 75b6cf13b..7e3041ae3 100644
--- a/app/serializers/rest/account_serializer.rb
+++ b/app/serializers/rest/account_serializer.rb
@@ -3,7 +3,7 @@
 class REST::AccountSerializer < ActiveModel::Serializer
   include RoutingHelper
 
-  attributes :id, :username, :acct, :display_name, :locked, :bot, :created_at,
+  attributes :id, :username, :acct, :display_name, :locked, :bot, :discoverable, :created_at,
              :note, :url, :avatar, :avatar_static, :header, :header_static,
              :followers_count, :following_count, :statuses_count, :last_status_at