mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
Merge remote-tracking branch 'github-nickvergessen/ticket/12370' into develop-ascraeus
* github-nickvergessen/ticket/12370: [ticket/12370] Add unit tests for topic notifications [ticket/12370] Fix functional notification test and remove unneeded requests [ticket/12370] Do not delete topic notifications when the topic is visible
This commit is contained in:
@@ -2272,8 +2272,10 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||
case 'edit_first_post':
|
||||
case 'edit':
|
||||
case 'edit_last_post':
|
||||
// @todo: Check whether these notification deletions are correct
|
||||
$phpbb_notifications->delete_notifications('topic', $data['topic_id']);
|
||||
if ($data['topic_visibility'] != ITEM_APPROVED)
|
||||
{
|
||||
$phpbb_notifications->delete_notifications('topic', $data['topic_id']);
|
||||
}
|
||||
|
||||
$phpbb_notifications->delete_notifications(array(
|
||||
'quote',
|
||||
@@ -2297,8 +2299,10 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||
case 'edit_first_post':
|
||||
case 'edit':
|
||||
case 'edit_last_post':
|
||||
// @todo: Check whether these notification deletions are correct
|
||||
$phpbb_notifications->delete_notifications('topic', $data['topic_id']);
|
||||
if ($data['topic_visibility'] != ITEM_APPROVED)
|
||||
{
|
||||
$phpbb_notifications->delete_notifications('topic', $data['topic_id']);
|
||||
}
|
||||
|
||||
$phpbb_notifications->delete_notifications(array(
|
||||
'quote',
|
||||
|
Reference in New Issue
Block a user