mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 08:33:41 +01:00
add og:image:alt for media attachments in embeds (#10779)
This commit is contained in:
parent
6fe474837c
commit
2f3e4a64be
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@
|
|||
- unless media.file.meta.nil?
|
||||
= opengraph 'og:image:width', media.file.meta.dig('original', 'width')
|
||||
= opengraph 'og:image:height', media.file.meta.dig('original', 'height')
|
||||
- if media.description.present?
|
||||
= opengraph 'og:image:alt', media.description
|
||||
- elsif media.video? || media.gifv?
|
||||
- player_card = true
|
||||
= opengraph 'og:image', full_asset_url(media.file.url(:small))
|
||||
|
|
Loading…
Reference in a new issue