Update account, status meta tags
• Update: - account, status meta tags
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
- content_for :page_title do
|
||||
= t('statuses.title', name: display_name(account), quote: truncate(stream_entry.activity.spoiler_text.presence || stream_entry.activity.text, length: 50, omission: '…', escape: false)) + " | #{site_hostname}"
|
||||
= t('statuses.title', name: display_name(account), quote: truncate(stream_entry.activity.spoiler_text.presence || stream_entry.activity.text, length: 50, omission: '…', escape: false))
|
||||
|
||||
- content_for :header_tags do
|
||||
- if account.user&.setting_noindex
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
= opengraph 'og:site_name', site_title
|
||||
= opengraph 'og:type', 'article'
|
||||
= opengraph 'og:title', "#{display_name(account)} (@#{account.local_username_and_domain})"
|
||||
= opengraph 'og: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))
|
||||
= opengraph 'og:url', short_account_status_url(account, stream_entry.activity)
|
||||
|
||||
= render 'stream_entries/og_description', activity: stream_entry.activity
|
||||
= render 'stream_entries/og_description', activity: stream_entry.activity, account: account
|
||||
= render 'stream_entries/og_image', activity: stream_entry.activity, account: account
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- description = status_description(activity)
|
||||
- description = t('statuses.title', name: display_name(account), quote: truncate(activity.spoiler_text.presence || activity.text, length: 50, omission: '…', escape: false))
|
||||
|
||||
%meta{ name: 'description', content: description }/
|
||||
= opengraph 'og:description', description
|
||||
|
||||
Reference in New Issue
Block a user