about summary refs log tree commit diff
path: root/app/views/stream_entries
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-05-19 17:46:31 +0200
committerThibaut Girka <thib@sitedethib.com>2019-05-19 17:46:31 +0200
commitf509815379ddfdca1af75d092d6d37ddfdddbcd4 (patch)
tree759b982e0eb44a98c86ce43ddc23aba4f097c5af /app/views/stream_entries
parent4beb8d77889e4e152a483e4d17724fa83e7c0dd3 (diff)
parent692e7cea2ab8a4660e74edb909d7da641b5439f5 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/views/stream_entries')
-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))