Fixed issue with showing status meta in html head/title tags
• Fixed: - issue with showing status meta in html head/title tags
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
- the_title = t('statuses.title', name: display_name(account), quote: truncate(status.spoiler_text.presence || stream_entry.activity.text, length: 50, omission: '…', escape: false))
|
||||
- the_title = t('statuses.title', name: display_name(account), quote: truncate(status.spoiler_text.presence, length: 50, omission: '…', escape: false))
|
||||
|
||||
- content_for :page_title do
|
||||
= the_title
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- description = t('statuses.title', name: display_name(account), quote: activity.spoiler_text.presence || activity.text)
|
||||
- description = t('statuses.title', name: display_name(account), quote: status.spoiler_text.presence || status.text)
|
||||
|
||||
%meta{ name: 'description', content: description }/
|
||||
= opengraph 'og:description', description
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
- if activity.is_a?(Status) && (activity.non_sensitive_with_media? || (activity.with_media? && Setting.preview_sensitive_media))
|
||||
- if status.is_a?(Status) && (status.non_sensitive_with_media? || (status.with_media? && Setting.preview_sensitive_media))
|
||||
- player_card = false
|
||||
- activity.media_attachments.each do |media|
|
||||
- status.media_attachments.each do |media|
|
||||
- if media.image?
|
||||
= opengraph 'og:image', full_asset_url(media.file.url(:original))
|
||||
= opengraph 'og:image:type', media.file_content_type
|
||||
|
||||
Reference in New Issue
Block a user