2020-07-25 04:47:12 +01:00
|
|
|
- the_title = t('statuses.title', name: display_name(account), quote: truncate(stream_entry.activity.spoiler_text.presence || stream_entry.activity.text, length: 50, omission: '…', escape: false))
|
2020-07-25 04:36:58 +01:00
|
|
|
|
2019-08-17 06:14:24 +01:00
|
|
|
- content_for :page_title do
|
2020-07-25 04:36:58 +01:00
|
|
|
= the_title
|
2019-08-17 06:14:24 +01:00
|
|
|
|
|
|
|
- content_for :header_tags do
|
|
|
|
- if account.user&.setting_noindex
|
|
|
|
%meta{ name: 'robots', content: 'noindex' }/
|
|
|
|
|
|
|
|
%link{ rel: 'alternate', type: 'application/atom+xml', href: account_stream_entry_url(account, stream_entry, format: 'atom') }/
|
|
|
|
%link{ rel: 'alternate', type: 'application/json+oembed', href: api_oembed_url(url: account_stream_entry_url(account, stream_entry), format: 'json') }/
|
|
|
|
%link{ rel: 'alternate', type: 'application/activity+json', href: ActivityPub::TagManager.instance.uri_for(stream_entry.activity) }/
|
|
|
|
|
|
|
|
= opengraph 'og:site_name', site_title
|
|
|
|
= opengraph 'og:type', 'article'
|
2020-07-25 04:36:58 +01:00
|
|
|
= opengraph 'og:title', the_title
|
2019-08-17 06:14:24 +01:00
|
|
|
= opengraph 'og:url', short_account_status_url(account, stream_entry.activity)
|
|
|
|
|
2020-05-27 01:12:19 +01:00
|
|
|
= render 'stream_entries/og_description', activity: stream_entry.activity, account: account
|
2019-08-17 06:14:24 +01:00
|
|
|
= render 'stream_entries/og_image', activity: stream_entry.activity, account: account
|