1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[feature/soft-delete] Extend functionality for updating a hole topic

Limit the posts to a certain visibility and deletion time
This allows us to only restore posts, that were approved
when the topic got soft deleted. So previous soft deleted
and unapproved posts are still soft deleted/unapproved

PHPBB3-9567
This commit is contained in:
Joas Schilling
2012-10-05 13:12:36 +02:00
parent 63d11c976b
commit bfa6a50a4f
2 changed files with 30 additions and 19 deletions

View File

@@ -107,18 +107,6 @@ class phpbb_content_visibility_set_post_visibility_test extends phpbb_database_t
array('topic_visibility' => 2, 'topic_first_post_id' => 8, 'topic_last_post_id' => 8),
),
),
array(
ITEM_UNAPPROVED,
8, 3, 1,
2, time(), 'unapproved',
true, true,
array(
array('post_id' => 8, 'post_visibility' => 0, 'post_delete_reason' => 'unapproved'),
),
array(
array('topic_visibility' => 0, 'topic_first_post_id' => 8, 'topic_last_post_id' => 8),
),
),
);
}