mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Do not increment users post count after post approval if post had been posted in a forum with no post count increasing set (Bug #37865)
git-svn-id: file:///svn/phpbb/trunk@9134 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
764c1c4f2b
commit
b4bf675273
1 changed files with 6 additions and 2 deletions
|
@ -504,8 +504,12 @@ function approve_post($post_id_list, $id, $mode)
|
||||||
$forum_id_list[$post_data['forum_id']] = 1;
|
$forum_id_list[$post_data['forum_id']] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// User post update (we do not care about topic or post, since user posts are strictly connected to posts
|
// User post update (we do not care about topic or post, since user posts are strictly connected to posts)
|
||||||
$user_posts_sql[$post_data['poster_id']] = (empty($user_posts_sql[$post_data['poster_id']])) ? 1 : $user_posts_sql[$post_data['poster_id']] + 1;
|
// But we care about forums where post counts get not increased. ;)
|
||||||
|
if ($post_data['post_postcount'])
|
||||||
|
{
|
||||||
|
$user_posts_sql[$post_data['poster_id']] = (empty($user_posts_sql[$post_data['poster_id']])) ? 1 : $user_posts_sql[$post_data['poster_id']] + 1;
|
||||||
|
}
|
||||||
|
|
||||||
// Topic or Post. ;)
|
// Topic or Post. ;)
|
||||||
if ($post_data['topic_first_post_id'] == $post_id)
|
if ($post_data['topic_first_post_id'] == $post_id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue