Link the extensions endpoint from AP's "endpoints"

This is in line with cwebber's proposal at
https://github.com/swicg/general/issues/22
This commit is contained in:
Surinna Curtis 2017-09-23 21:04:19 +00:00
parent f02150468b
commit 3d80ba01d7

View File

@ -27,7 +27,11 @@ class ActivityPub::ActorSerializer < ActiveModel::Serializer
class EndpointsSerializer < ActiveModel::Serializer class EndpointsSerializer < ActiveModel::Serializer
include RoutingHelper include RoutingHelper
attributes :shared_inbox attributes :extensions, :shared_inbox
def extensions
api_v1_extensions_url
end
def shared_inbox def shared_inbox
inbox_url inbox_url