about summary refs log tree commit diff
path: root/app/views/stream_entries/_og_image.html.haml
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-05-19 21:52:27 +0200
committerGitHub <noreply@github.com>2019-05-19 21:52:27 +0200
commit46811f92e4b1705da5bb52e0e9e4e9e59ea1a15e (patch)
tree759b982e0eb44a98c86ce43ddc23aba4f097c5af /app/views/stream_entries/_og_image.html.haml
parent4beb8d77889e4e152a483e4d17724fa83e7c0dd3 (diff)
parentf509815379ddfdca1af75d092d6d37ddfdddbcd4 (diff)
Merge pull request #1054 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/views/stream_entries/_og_image.html.haml')
-rw-r--r--app/views/stream_entries/_og_image.html.haml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/stream_entries/_og_image.html.haml b/app/views/stream_entries/_og_image.html.haml
index e1b977da3..67f9274b6 100644
--- a/app/views/stream_entries/_og_image.html.haml
+++ b/app/views/stream_entries/_og_image.html.haml
@@ -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))