social 0.14.6: Fix disappearing share buttons

This commit is contained in:
onli 2022-01-21 16:14:05 +01:00
parent 9348c0d779
commit caa32f71b7
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
0.14.6
* Fix: Social share buttons were sometimes missing
on the entry page
0.14.5
* Avoid PHP 8 warning warning about missing view key
in entry preview

View file

@ -16,7 +16,7 @@ class serendipity_event_social extends serendipity_event {
$propbag->add('description', PLUGIN_EVENT_SOCIAL_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'onli, Matthias Mees, Thomas Hochstein');
$propbag->add('version', '0.14.5');
$propbag->add('version', '0.14.6');
$propbag->add('requirements', array(
'serendipity' => '2.0'
));
@ -133,7 +133,7 @@ class serendipity_event_social extends serendipity_event {
if (isset($hooks[$event])) {
switch($event) {
case 'frontend_display:html:per_entry':
if ($serendipity['view'] ?? '' != 'entry') {
if (($serendipity['view'] ?? '') != 'entry') {
if (! serendipity_db_bool($this->get_config('overview', true))) {
// We are in overview mode and the user opted to not show the button
return true;