|
|
@ -4,8 +4,9 @@ class ActivityPub::ActorSerializer < ActiveModel::Serializer
|
|
|
|
include RoutingHelper
|
|
|
|
include RoutingHelper
|
|
|
|
|
|
|
|
|
|
|
|
attributes :id, :type, :following, :followers,
|
|
|
|
attributes :id, :type, :following, :followers,
|
|
|
|
:inbox, :outbox, :preferred_username,
|
|
|
|
:inbox, :outbox, :shared_inbox,
|
|
|
|
:name, :summary, :url
|
|
|
|
:preferred_username, :name, :summary,
|
|
|
|
|
|
|
|
:url
|
|
|
|
|
|
|
|
|
|
|
|
has_one :public_key, serializer: ActivityPub::PublicKeySerializer
|
|
|
|
has_one :public_key, serializer: ActivityPub::PublicKeySerializer
|
|
|
|
|
|
|
|
|
|
|
@ -52,6 +53,10 @@ class ActivityPub::ActorSerializer < ActiveModel::Serializer
|
|
|
|
account_outbox_url(object)
|
|
|
|
account_outbox_url(object)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def shared_inbox
|
|
|
|
|
|
|
|
inbox_url
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def preferred_username
|
|
|
|
def preferred_username
|
|
|
|
object.username
|
|
|
|
object.username
|
|
|
|
end
|
|
|
|
end
|
|
|
|