Add feature_quote to instance API
This commit is contained in:
parent
2edc7f287e
commit
279c215c04
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue