X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FConversation%2FCommunity.php;h=8be5361deb3bc49e2e859103e220c680a02c5f29;hb=8e6483970a46e77ffe0e306f72b884bcb11c1765;hp=5637c6f4199e69ba8f4bb2bde02517741e6cd9a3;hpb=72c198990e3d6dd23628ad15600b2089882e03c4;p=friendica.git diff --git a/src/Module/Conversation/Community.php b/src/Module/Conversation/Community.php index 5637c6f419..8be5361deb 100644 --- a/src/Module/Conversation/Community.php +++ b/src/Module/Conversation/Community.php @@ -81,7 +81,7 @@ class Community extends BaseModule $items = self::getItems(); if (!DBA::isResult($items)) { - info(DI::l10n()->t('No results.')); + notice(DI::l10n()->t('No results.')); return $o; } @@ -295,6 +295,11 @@ class Community extends BaseModule return []; } + if (local_user() && DI::config()->get('system', 'community_no_followers')) { + $condition[0] .= " AND NOT EXISTS (SELECT `uri-id` FROM `thread` AS t1 WHERE `t1`.`uri-id` = `thread`.`uri-id` AND `t1`.`uid` = ?)"; + $condition[] = local_user(); + } + if (isset($max_id)) { $condition[0] .= " AND `commented` < ?"; $condition[] = $max_id;