From d5c45d5288f035ef36484b007cd6cc246fa65e19 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= <nicolas@loeuillet.org>
Date: Fri, 7 Oct 2016 15:21:31 +0200
Subject: Added default picture if preview picture is null

---
 .../CoreBundle/Resources/views/themes/common/Entry/share.html.twig      | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/Wallabag')

diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig
index 36c49e04..a0a0d3c3 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig
@@ -32,6 +32,8 @@
         <meta property="og:url" content="{{ app.request.uri }}" />
         {% if entry.previewPicture is not null %}
         <meta property="og:image" content="{{ entry.previewPicture }}" />
+        {% else %}
+        <meta property="og:image" content="{{ app.request.schemeAndHttpHost }}{{ asset('bundles/wallabagcore/themes/_global/img/logo-other_themes.png') }}" />
         {% endif %}
     </head>
     <body>
-- 
cgit v1.2.3