fix [ticket/17017]

fix post count bug
This commit is contained in:
KF MDM Solutions 2022-11-21 20:32:02 -05:00 committed by GitHub
parent 400546670a
commit 50cf4892ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -445,8 +445,11 @@ class content_visibility
{ {
if ($row['post_postcount'] && !isset($poster_postcounts[(int) $row['poster_id']])) if ($row['post_postcount'] && !isset($poster_postcounts[(int) $row['poster_id']]))
{ {
if($row['post_visibility'] != 0 || $visibility != ITEM_DELETED ){
$poster_postcounts[(int) $row['poster_id']] = 1; $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']]++;