User hide_dislike user setting to hide dislike button and conversation responses

This commit is contained in:
Hypolite Petovan 2020-02-19 22:20:26 -05:00
parent 96ba2ac00d
commit 637e38e535
7 changed files with 34 additions and 12 deletions

View file

@ -373,6 +373,10 @@ class Post
$location_e = $location;
$owner_name_e = $this->getOwnerName();
if (DI::pConfig()->get(local_user(), 'system', 'hide_dislike')) {
$buttons['dislike'] = false;
}
// 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;