mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Issue 9268: Don't show posts from followers on community page
This commit is contained in:
parent
04f993b611
commit
b522f20702
2 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue