Fix: The calculation of unseen circles can now be deactivated again

This commit is contained in:
Michael 2023-10-05 17:06:21 +00:00
parent eb50618fe8
commit 174fa49b23
6 changed files with 21 additions and 10 deletions

View file

@ -152,10 +152,10 @@ class Ping extends BaseModule
}
}
$compute_circle_counts = $this->config->get('system','compute_group_counts') ?? $this->config->get('system','compute_circle_counts');
$compute_circle_counts = $this->config->get('system','compute_circle_counts');
if ($network_count && $compute_circle_counts) {
// Find out how unseen network posts are spread across circles
foreach (Circle::countUnseen() as $circle_count) {
foreach (Circle::countUnseen($this->session->getLocalUserId()) as $circle_count) {
if ($circle_count['count'] > 0) {
$circles_unseen[] = $circle_count;
}