2019-08-17 06:14:24 +01:00
|
|
|
- content_for :page_title do
|
2020-07-22 19:48:27 +01:00
|
|
|
= "#{display_name(account)} on Gab"
|
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-22 19:48:27 +01:00
|
|
|
= opengraph 'og:title', t('statuses.title', name: display_name(account), quote: stream_entry.activity.spoiler_text.presence || stream_entry.activity.text)
|
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
|