mirror of
https://github.com/friendica/friendica
synced 2025-04-22 22:30:11 +00:00
User hide_dislike user setting to hide dislike button and conversation responses
This commit is contained in:
parent
96ba2ac00d
commit
637e38e535
7 changed files with 34 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue