add og:image:alt for media attachments in embeds (#10779)

This commit is contained in:
Ben Lubar 2019-05-18 13:57:45 -05:00 committed by Eugen Rochko
parent 3c27687a6e
commit d587a943a5

View file

@ -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))