]> git.mxchange.org Git - friendica.git/blobdiff - include/conversation.php
User hide_dislike user setting to hide dislike button and conversation responses
[friendica.git] / include / conversation.php
index e713994bc6f6b1d8eab5042357bf8932a5c906ec..f29e6d32540f2da89f55f7e9e459173ce91c0717 100644 (file)
@@ -587,6 +587,10 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o
                'announce' => ['title' => DI::l10n()->t('Reshares','title')]
        ];
 
+       if (DI::pConfig()->get(local_user(), 'system', 'hide_dislike')) {
+               unset($conv_responses['dislike']);
+       }
+
        // array with html for each thread (parent+comments)
        $threads = [];
        $threadsid = -1;
@@ -678,6 +682,10 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o
                                        'share'   => null,
                                ];
 
+                               if (DI::pConfig()->get(local_user(), 'system', 'hide_dislike')) {
+                                       unset($likebuttons['dislike']);
+                               }
+
                                $body = Item::prepareBody($item, true, $preview);
 
                                list($categories, $folders) = DI::contentItem()->determineCategoriesTerms($item);