Sha256: 3a862cc3b405fcd6dc3bc97875535fb56f61ad6fd2c4e194f77b28178739a6b7

Contents?: true

Size: 575 Bytes

Versions: 3

Compression:

Stored size: 575 Bytes

Contents

context = true unless context == false
json.set! '@context', 'https://www.w3.org/ns/activitystreams' if context

json.id Federails::Engine.routes.url_helpers.server_actor_activity_url activity.actor, activity
json.type activity.action
json.actor activity.actor.federated_url
json.to ['https://www.w3.org/ns/activitystreams#Public']
json.cc [activity.actor.followers_url]

if activity.entity.respond_to? :to_activitypub_object
  json.object activity.entity.to_activitypub_object
elsif activity.entity.respond_to? :federated_url
  json.object activity.entity.federated_url
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
federails-0.4.0 app/views/federails/server/activities/_activity.activitypub.jbuilder
federails-0.3.0 app/views/federails/server/activities/_activity.activitypub.jbuilder
federails-0.2.0 app/views/federails/server/activities/_activity.activitypub.jbuilder