Compare commits

...

2 commits

Author SHA1 Message Date
KFMDM Solutions
4f6cded8de
Merge 50cf4892ea into f94423d491 2025-05-08 11:36:17 +07:00
KF MDM Solutions
50cf4892ea
fix [ticket/17017]
fix post count bug
2022-11-21 20:32:02 -05:00

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']]))
{ {
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']]++;