#63 NodeInfoでのfedibird_capabilities
公開
This commit is contained in:
parent
f0f808619d
commit
016a8490d2
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
|
||||
{}
|
||||
{
|
||||
fedibird_capabilities: fedibird_capabilities,
|
||||
}
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue