From: Hypolite Petovan Date: Wed, 27 May 2020 12:32:09 +0000 (-0400) Subject: Fix the event feature disabling logic in Object\Post X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e20d5ff0b5bd09aad7467ed6bbed820be41dcbff;p=friendica.git Fix the event feature disabling logic in Object\Post - Conditions on item network and dislike feature presence were mixed which could have led to unexpected behaviors --- diff --git a/src/Object/Post.php b/src/Object/Post.php index 8488df000f..8c899683d2 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -380,8 +380,11 @@ class Post } // Disable features that aren't available in several networks - if ($buttons["dislike"] && !in_array($item["network"], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA])) { - $buttons["dislike"] = false; + if (!in_array($item["network"], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA])) { + if ($buttons["dislike"]) { + $buttons["dislike"] = false; + } + $isevent = false; $tagger = ''; }