diff options
author | ThibG <thib@sitedethib.com> | 2019-05-19 21:52:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 21:52:27 +0200 |
commit | 46811f92e4b1705da5bb52e0e9e4e9e59ea1a15e (patch) | |
tree | 759b982e0eb44a98c86ce43ddc23aba4f097c5af /app/views/stream_entries | |
parent | 4beb8d77889e4e152a483e4d17724fa83e7c0dd3 (diff) | |
parent | f509815379ddfdca1af75d092d6d37ddfdddbcd4 (diff) |
Merge pull request #1054 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
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)) |