mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-23 12:20:32 +01:00
Merge pull request #2389 from wallabag/add-info-publich-articles
Added default picture if preview picture is null
This commit is contained in:
commit
20bf78b935
src/Wallabag/CoreBundle/Resources/views/themes/common/Entry
tests/Wallabag/CoreBundle/Controller
@ -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>
|
||||
|
@ -781,6 +781,7 @@ class EntryControllerTest extends WallabagCoreTestCase
|
||||
$this->assertContains('og:title', $client->getResponse()->getContent());
|
||||
$this->assertContains('og:type', $client->getResponse()->getContent());
|
||||
$this->assertContains('og:url', $client->getResponse()->getContent());
|
||||
$this->assertContains('og:image', $client->getResponse()->getContent());
|
||||
|
||||
// sharing is now disabled
|
||||
$client->getContainer()->get('craue_config')->set('share_public', 0);
|
||||
|
Loading…
Reference in New Issue
Block a user