mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-13 21:26:28 +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:
@ -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':
|
||||||
|
Reference in New Issue
Block a user