Merge pull request #8697 from MrPetovan/task/8691-like-links-one-way

Make like links one way
This commit is contained in:
Michael Vogel
2020-05-29 15:33:24 +02:00
committed by GitHub
16 changed files with 137 additions and 102 deletions

View 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 = '';
}