1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

[ticket/12371] Delete the approve_post notification when editing a post

We need to delete the initial approve notification,
so we can notify the user again, when his post got reapproved.

PHPBB3-12371
This commit is contained in:
Joas Schilling 2014-04-19 11:14:01 +02:00
parent 465aa9c346
commit 40d91a5d6e

View File

@ -2293,11 +2293,19 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
case 'edit_topic': case 'edit_topic':
case 'edit_first_post': case 'edit_first_post':
$phpbb_notifications->add_notifications('topic_in_queue', $notification_data); $phpbb_notifications->add_notifications('topic_in_queue', $notification_data);
// Delete the approve_post notification so we can notify the user again,
// when his post got reapproved
$phpbb_notifications->delete_notifications('approve_post', $notification_data['post_id']);
break; break;
case 'edit': case 'edit':
case 'edit_last_post': case 'edit_last_post':
$phpbb_notifications->add_notifications('post_in_queue', $notification_data); $phpbb_notifications->add_notifications('post_in_queue', $notification_data);
// Delete the approve_post notification so we can notify the user again,
// when his post got reapproved
$phpbb_notifications->delete_notifications('approve_post', $notification_data['post_id']);
break; break;
case 'post': case 'post':