mastodon/app/serializers/activitypub/context_serializer.rb

19 lines
318 B
Ruby

# frozen_string_literal: true
class ActivityPub::ContextSerializer < ActivityPub::Serializer
include RoutingHelper
attributes :id, :type, :inbox
def id
ActivityPub::TagManager.instance.uri_for(object)
end
def type
'Group'
end
def inbox
account_inbox_url(object.parent_account)
end
end