Add kmyblue_capabilities
This commit is contained in:
parent
3562d5d7e7
commit
21126fd18f
2 changed files with 30 additions and 2 deletions
|
@ -11,7 +11,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
|||
|
||||
attributes :domain, :title, :version, :source_url, :description,
|
||||
:usage, :thumbnail, :languages, :configuration,
|
||||
:registrations, :fedibird_capabilities
|
||||
:registrations, :fedibird_capabilities, :kmyblue_capabilities
|
||||
|
||||
has_one :contact, serializer: ContactSerializer
|
||||
has_many :rules, serializer: REST::RuleSerializer
|
||||
|
@ -130,6 +130,20 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
|||
capabilities
|
||||
end
|
||||
|
||||
def kmyblue_capabilities
|
||||
%i(
|
||||
visibility_public_unlisted
|
||||
searchability
|
||||
markdown
|
||||
reaction_deck
|
||||
visibility_login
|
||||
limited_scope
|
||||
antenna
|
||||
bookmark_category
|
||||
status_expiration
|
||||
)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def registrations_enabled?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue