Change software in nodeinfo to fedibird
This commit is contained in:
parent
394cebce57
commit
ff063001d5
1 changed files with 12 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
class NodeInfo::Serializer < ActiveModel::Serializer
|
||||
include RoutingHelper
|
||||
|
||||
attributes :version, :software, :protocols, :usage, :open_registrations
|
||||
attributes :version, :software, :protocols, :usage, :open_registrations, :metadata
|
||||
|
||||
def version
|
||||
'2.0'
|
||||
|
@ -37,6 +37,17 @@ class NodeInfo::Serializer < ActiveModel::Serializer
|
|||
Setting.registrations_mode != 'none' && !Rails.configuration.x.single_user_mode
|
||||
end
|
||||
|
||||
def metadata
|
||||
{
|
||||
forks: [
|
||||
{
|
||||
name: 'fedibird',
|
||||
version: Mastodon::Version.fedibird_verson,
|
||||
},
|
||||
],
|
||||
}
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def instance_presenter
|
||||
|
|
Loading…
Reference in a new issue