X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fconversation.php;h=f29e6d32540f2da89f55f7e9e459173ce91c0717;hb=637e38e535c0075e0db2cc2d5cf08d938b0e858f;hp=e713994bc6f6b1d8eab5042357bf8932a5c906ec;hpb=09961a07e48de836f0629b807c4a276c2ff06e87;p=friendica.git diff --git a/include/conversation.php b/include/conversation.php index e713994bc6..f29e6d3254 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -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);