diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-19 11:14:01 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-04-25 11:52:28 +0200 |
commit | 40d91a5d6ee26fceed430856532c6786f5dcf954 (patch) | |
tree | f5cd9ec1d3ada00e97646655b71001e2b8825246 /phpBB/includes/functions_posting.php | |
parent | 465aa9c346f3d710d6d7e86de1667719d63364a7 (diff) | |
download | forums-40d91a5d6ee26fceed430856532c6786f5dcf954.tar forums-40d91a5d6ee26fceed430856532c6786f5dcf954.tar.gz forums-40d91a5d6ee26fceed430856532c6786f5dcf954.tar.bz2 forums-40d91a5d6ee26fceed430856532c6786f5dcf954.tar.xz forums-40d91a5d6ee26fceed430856532c6786f5dcf954.zip |
[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
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 73e95ae89a..32eb2505f8 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -2293,11 +2293,19 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u case 'edit_topic': case 'edit_first_post': $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; case 'edit': case 'edit_last_post': $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; case 'post': |