This commit is contained in:
KFMDM Solutions 2025-05-02 07:16:06 +00:00 committed by GitHub
commit 0d73ba3654
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -441,12 +441,15 @@ class content_visibility
{ {
$post_ids[] = (int) $row['post_id']; $post_ids[] = (int) $row['post_id'];
if ($row['post_visibility'] != $visibility) if ($row['post_visibility'] != $visibility )
{ {
if ($row['post_postcount'] && !isset($poster_postcounts[(int) $row['poster_id']])) if ($row['post_postcount'] && !isset($poster_postcounts[(int) $row['poster_id']]))
{ {
$poster_postcounts[(int) $row['poster_id']] = 1; if($row['post_visibility'] != 0 || $visibility != ITEM_DELETED ){
$poster_postcounts[(int) $row['poster_id']] = 1;
}
} }
else if ($row['post_postcount']) else if ($row['post_postcount'])
{ {
$poster_postcounts[(int) $row['poster_id']]++; $poster_postcounts[(int) $row['poster_id']]++;