mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-06 01:41:08 +00:00
This is only used with statuses
This commit is contained in:
parent
b6cd32281f
commit
89bdf9b535
|
@ -1,6 +1,6 @@
|
|||
- if activity.is_a?(Status) && (activity.non_sensitive_with_media? || (activity.with_media? && Setting.preview_sensitive_media))
|
||||
- if status.non_sensitive_with_media? || (status.with_media? && Setting.preview_sensitive_media)
|
||||
- player_card = false
|
||||
- activity.ordered_media_attachments.each do |media|
|
||||
- status.ordered_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
|
||||
|
|
|
@ -17,6 +17,6 @@
|
|||
= opengraph 'profile:username', acct(@account)[1..]
|
||||
|
||||
= render 'og_description', activity: @status
|
||||
= render 'og_image', activity: @status, account: @account
|
||||
= render 'og_image', status: @status, account: @account
|
||||
|
||||
= render 'shared/web_app'
|
||||
|
|
Loading…
Reference in New Issue
Block a user