Add feature_quote to instance API

This commit is contained in:
noellabo 2020-02-24 12:53:28 +09:00
parent 2edc7f287e
commit 279c215c04

View file

@ -6,7 +6,8 @@ class REST::InstanceSerializer < ActiveModel::Serializer
attributes :uri, :title, :short_description, :description, :email, attributes :uri, :title, :short_description, :description, :email,
:version, :urls, :stats, :thumbnail, :version, :urls, :stats, :thumbnail,
:languages, :registrations, :approval_required, :invites_enabled, :languages, :registrations, :approval_required, :invites_enabled,
:configuration :configuration,
:feature_quote
has_one :contact_account, serializer: REST::AccountSerializer has_one :contact_account, serializer: REST::AccountSerializer
@ -96,6 +97,10 @@ class REST::InstanceSerializer < ActiveModel::Serializer
Setting.min_invite_role == 'user' Setting.min_invite_role == 'user'
end end
def feature_quote
true
end
private private
def instance_presenter def instance_presenter