]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Conversation/Community.php
Merge pull request #9277 from annando/issue-9268
[friendica.git] / src / Module / Conversation / Community.php
index 5637c6f4199e69ba8f4bb2bde02517741e6cd9a3..8be5361deb3bc49e2e859103e220c680a02c5f29 100644 (file)
@@ -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;