The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

25 lines
1.1 KiB

  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. = render 'og_description', activity: @status
  13. = render 'og_image', activity: @status, account: @account
  14. .grid
  15. .column-0
  16. .activity-stream.h-entry
  17. = render partial: 'status', locals: { status: @status, include_threads: true }
  18. .column-1
  19. = render 'application/sidebar'