Sha256: 935f15c82d3e33f7114f372053d9b6f6518fe25d76de9fb9bfa6a36e32985d3a

Contents?: true

Size: 673 Bytes

Versions: 2

Compression:

Stored size: 673 Bytes

Contents

actor_data = actor.entity.to_activitypub_object

json.set! '@context', ([
  'https://www.w3.org/ns/activitystreams',
  'https://w3id.org/security/v1',
] + [
  actor_data&.delete(:@context),
].flatten).compact

json.id actor.federated_url
json.name actor.name
json.type actor.entity_configuration[:actor_type]
json.preferredUsername actor.username
json.inbox actor.inbox_url
json.outbox actor.outbox_url
json.followers actor.followers_url
json.following actor.followings_url
json.url actor.profile_url
if actor.public_key
  json.publicKey do
    json.id actor.key_id
    json.owner actor.federated_url
    json.publicKeyPem actor.public_key
  end
end
json.merge! actor_data

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
federails-0.4.0 app/views/federails/server/actors/_actor.activitypub.jbuilder
federails-0.3.0 app/views/federails/server/actors/_actor.activitypub.jbuilder