diff options
Diffstat (limited to 'app/views/accounts/show.activitystreams2.rabl')
-rw-r--r-- | app/views/accounts/show.activitystreams2.rabl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/accounts/show.activitystreams2.rabl b/app/views/accounts/show.activitystreams2.rabl new file mode 100644 index 000000000..dabae3f29 --- /dev/null +++ b/app/views/accounts/show.activitystreams2.rabl @@ -0,0 +1,8 @@ +extends 'activitypub/types/person.activitystreams2.rabl' + +object @account + +attributes display_name: :name, username: :preferredUsername, note: :summary + +node(:icon) { |account| full_asset_url(account.avatar.url(:original)) } +node(:image) { |account| full_asset_url(account.header.url(:original)) } |