Skip to content
Snippets Groups Projects
Commit 2f3e4a64 authored by Ben Lubar's avatar Ben Lubar Committed by Eugen Rochko
Browse files

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

parent 6fe47483
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment