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
This commit is contained in:
parent
2d217129b9
commit
e20d5ff0b5
1 changed files with 5 additions and 2 deletions
|
@ -380,8 +380,11 @@ class Post
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable features that aren't available in several networks
|
// Disable features that aren't available in several networks
|
||||||
if ($buttons["dislike"] && !in_array($item["network"], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA])) {
|
if (!in_array($item["network"], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA])) {
|
||||||
$buttons["dislike"] = false;
|
if ($buttons["dislike"]) {
|
||||||
|
$buttons["dislike"] = false;
|
||||||
|
}
|
||||||
|
|
||||||
$isevent = false;
|
$isevent = false;
|
||||||
$tagger = '';
|
$tagger = '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue