闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
447 B

  1. extends 'activitypub/types/note.activitystreams2.rabl'
  2. object @status
  3. attributes :content
  4. node(:name) { |status| status.content }
  5. node(:url) { |status| TagManager.instance.url_for(status) }
  6. node(:attributedTo) { |status| TagManager.instance.url_for(status.account) }
  7. node(:inReplyTo) { |status| api_activitypub_note_url(status.thread) } if @status.thread
  8. node(:published) { |status| status.created_at.to_time.xmlschema }