show.html.haml 1.1 KB

12345678910111213141516171819202122232425
  1. - content_for :page_title do
  2. = t('statuses.title', name: display_name(@account), quote: truncate(@status.spoiler_text.presence || @status.text, length: 50, omission: '…', escape: false))
  3. - content_for :header_tags do
  4. - if @account.user&.setting_noindex
  5. %meta{ name: 'robots', content: 'noindex, noarchive' }/
  6. %link{ rel: 'alternate', type: 'application/json+oembed', href: api_oembed_url(url: short_account_status_url(@account, @status), format: 'json') }/
  7. %link{ rel: 'alternate', type: 'application/activity+json', href: ActivityPub::TagManager.instance.uri_for(@status) }/
  8. = opengraph 'og:site_name', site_title
  9. = opengraph 'og:type', 'article'
  10. = opengraph 'og:title', "#{display_name(@account)} (#{acct(@account)})"
  11. = opengraph 'og:url', short_account_status_url(@account, @status)
  12. = opengraph 'og:published_time', @status.created_at.iso8601
  13. = render 'og_description', activity: @status
  14. = render 'og_image', activity: @status, account: @account
  15. .grid
  16. .column-0
  17. .activity-stream.h-entry
  18. = render partial: 'status', locals: { status: @status, include_threads: true }
  19. .column-1
  20. = render 'application/sidebar'