]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Post.php
Merge pull request #8835 from tobiasd/20200701-lng
[friendica.git] / src / Object / Post.php
index 1ca02873d7f0d6b7a9144b53d5e46c98180c055c..0a68bbbe2b7dfb11bc167c88e6c8161fa1eb2c89 100644 (file)
@@ -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 = '';
                }