From 3d80ba01d766835abe9b6fb77c56779dc0e28b40 Mon Sep 17 00:00:00 2001 From: Surinna Curtis Date: Sat, 23 Sep 2017 21:04:19 +0000 Subject: [PATCH] Link the extensions endpoint from AP's "endpoints" This is in line with cwebber's proposal at https://github.com/swicg/general/issues/22 --- app/serializers/activitypub/actor_serializer.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/serializers/activitypub/actor_serializer.rb b/app/serializers/activitypub/actor_serializer.rb index a11178f5ba..24ddd23de4 100644 --- a/app/serializers/activitypub/actor_serializer.rb +++ b/app/serializers/activitypub/actor_serializer.rb @@ -27,7 +27,11 @@ class ActivityPub::ActorSerializer < ActiveModel::Serializer class EndpointsSerializer < ActiveModel::Serializer include RoutingHelper - attributes :shared_inbox + attributes :extensions, :shared_inbox + + def extensions + api_v1_extensions_url + end def shared_inbox inbox_url