about summary refs log tree commit diff
path: root/app/views/api/activitypub/notes/show.activitystreams2.rabl
blob: d962f4438e0d932567269b8847debd6c1c833400 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
extends 'activitypub/types/note.activitystreams2.rabl'

object @status

attributes :content

node(:name)         { |status| status.content }
node(:url)          { |status| TagManager.instance.url_for(status) }
node(:attributedTo) { |status| TagManager.instance.url_for(status.account) }
node(:inReplyTo)    { |status| api_activitypub_note_url(status.thread) } if @status.thread
node(:published)    { |status| status.created_at.to_time.xmlschema }