Add: #63 NodeInfoでのfeathres
の公開
This commit is contained in:
parent
846b8c5e06
commit
d5841809de
4 changed files with 37 additions and 51 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
class NodeInfo::Serializer < ActiveModel::Serializer
|
||||
include RoutingHelper
|
||||
include KmyblueCapabilitiesHelper
|
||||
|
||||
attributes :version, :software, :protocols, :services, :usage, :open_registrations, :metadata
|
||||
|
||||
|
@ -38,7 +39,9 @@ class NodeInfo::Serializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def metadata
|
||||
{}
|
||||
{
|
||||
features: fedibird_capabilities,
|
||||
}
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue