[feature/soft-delete] Comment out user_posts update for the moment

It should rely on the permissions of the post not the current user.

PHPBB3-9657
This commit is contained in:
Joas Schilling 2012-10-01 16:25:05 +02:00
parent e5377e98c7
commit 1943de36f3
2 changed files with 11 additions and 1 deletions

View file

@ -346,10 +346,16 @@ class phpbb_content_visibility
set_config_count('num_posts', ($topic_row['topic_replies'] + 1) * (-1), true);
// Only decrement this post, since this is the one non-approved now
//
/**
* @todo: this is wrong, it should rely on post_postcount
* also a user might have more than one post in the topic
*
if ($auth->acl_get('f_postcount', $forum_id))
{
$sql_data[USERS_TABLE] = 'user_posts = user_posts - 1';
}
*/
}
/**
@ -383,10 +389,14 @@ class phpbb_content_visibility
set_config_count('num_posts', -1, true);
/**
* @todo: this is wrong, it should rely on post_postcount
*
if ($auth->acl_get('f_postcount', $forum_id))
{
$sql_data[USERS_TABLE] = 'user_posts = user_posts - 1';
}
*/
}
/**

View file

@ -465,7 +465,7 @@ class mcp_queue
/**
* Approve Post/Topic
* Restore Post/Topic
*/
function restore_post($post_id_list, $id, $mode)
{