]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig
Added default picture if preview picture is null
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / common / Entry / share.html.twig
index 36c49e0422d0a4866036ea5a974e909427aa8db6..a0a0d3c36c2447140af57cefc09118e957d6294a 100644 (file)
@@ -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>