diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-05-19 17:46:31 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-05-19 17:46:31 +0200 |
commit | f509815379ddfdca1af75d092d6d37ddfdddbcd4 (patch) | |
tree | 759b982e0eb44a98c86ce43ddc23aba4f097c5af /app/views/stream_entries | |
parent | 4beb8d77889e4e152a483e4d17724fa83e7c0dd3 (diff) | |
parent | 692e7cea2ab8a4660e74edb909d7da641b5439f5 (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.haml | 2 |
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)) |