mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 07:49:29 +00:00
Remove unneeded type check on Status in og_image partial (#36980)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -20,6 +20,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'
|
||||
|
||||
Reference in New Issue
Block a user