1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 22:40:39 +02:00

[ticket/11103] Only notify a user once for a single item

Note: The user may be notified multiple times IF they use different
notification options. e.g They are subscribed to topics they have
bookmarked by a notification and subscribed to the topic by
an email notification. In this case, they would receive two notifications.
This occurs because we do not want to omit any more direct types of
notifications (if they want an email, they should _always_ get at least one
email).

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-09-27 20:05:06 -05:00
parent 07616bfa92
commit 2a5baad61b
13 changed files with 116 additions and 16 deletions

View File

@@ -2234,7 +2234,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
switch ($mode)
{
case 'post' :
$phpbb_notifications->add_notifications(array('topic', 'quote'), $notification_data);
$phpbb_notifications->add_notifications(array('quote', 'topic'), $notification_data);
break;
case 'reply' :