From 0124a17cf100ac12a8992678414c40d5d5e0ef30 Mon Sep 17 00:00:00 2001 From: noellabo Date: Tue, 28 Jun 2022 14:06:25 +0900 Subject: [PATCH] Change nodeinfo software name to fedibird --- app/serializers/nodeinfo/serializer.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/serializers/nodeinfo/serializer.rb b/app/serializers/nodeinfo/serializer.rb index 4c475a1b8..cb5cb0742 100644 --- a/app/serializers/nodeinfo/serializer.rb +++ b/app/serializers/nodeinfo/serializer.rb @@ -10,7 +10,7 @@ class NodeInfo::Serializer < ActiveModel::Serializer end def software - { name: 'mastodon', version: Mastodon::Version.to_s } + { name: 'fedibird', version: Mastodon::Version.fedibird_verson } end def services @@ -39,12 +39,10 @@ class NodeInfo::Serializer < ActiveModel::Serializer def metadata { - forks: [ - { - name: 'fedibird', - version: Mastodon::Version.fedibird_verson, - }, - ], + upstream: { + name: 'mastodon', + version: Mastodon::Version.to_s, + }, } end