[ticket/15420] Only update quote notification with original author

PHPBB3-15420
This commit is contained in:
Jakub Senko 2018-09-04 14:30:19 +02:00
parent bd90a53589
commit 4a30818e12
No known key found for this signature in database
GPG key ID: 6A7C328CD66EC21E

View file

@ -2309,8 +2309,14 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll_ary, &$data
case 'edit_first_post': case 'edit_first_post':
case 'edit': case 'edit':
case 'edit_last_post': case 'edit_last_post':
if ($user->data['user_id'] == $poster_id)
{
$phpbb_notifications->update_notifications(array( $phpbb_notifications->update_notifications(array(
'notification.type.quote', 'notification.type.quote',
), $notification_data);
}
$phpbb_notifications->update_notifications(array(
'notification.type.bookmark', 'notification.type.bookmark',
'notification.type.topic', 'notification.type.topic',
'notification.type.post', 'notification.type.post',