mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12270] Fixed rebase conflicts
PHPBB3-12270
This commit is contained in:
parent
46c658bdbf
commit
deba1329c8
1 changed files with 14 additions and 21 deletions
|
@ -653,28 +653,20 @@ class mcp_queue
|
||||||
// Handle notifications
|
// Handle notifications
|
||||||
foreach ($post_info as $post_id => $post_data)
|
foreach ($post_info as $post_id => $post_data)
|
||||||
{
|
{
|
||||||
// A single topic approval may also happen here.
|
// A single topic approval may also happen here, so handle deleting the respective notification.
|
||||||
if (!$post_data['topic_posts_approved'])
|
if (!$post_data['topic_posts_approved'])
|
||||||
{
|
{
|
||||||
|
$phpbb_notifications->delete_notifications('topic_in_queue', $post_data['topic_id']);
|
||||||
$topic_id_list[] = $post_data['topic_id'];
|
$topic_id_list[] = $post_data['topic_id'];
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
// Send post notification only if a topic notification will not be sent.
|
||||||
$phpbb_notifications->delete_notifications('post_in_queue', $post_id);
|
else
|
||||||
|
{
|
||||||
<<<<<<< HEAD
|
|
||||||
// Only add notifications, if we are not reapproving post
|
// Only add notifications, if we are not reapproving post
|
||||||
// When the topic was already approved, but was edited and
|
// When the topic was already approved, but was edited and
|
||||||
// now needs re-approval, we don't want to notify the users
|
// now needs re-approval, we don't want to notify the users
|
||||||
// again.
|
// again.
|
||||||
if ($post_data['post_visibility'] == ITEM_UNAPPROVED)
|
if ($post_data['post_visibility'] == ITEM_UNAPPROVED)
|
||||||
=======
|
|
||||||
// Send post notification only if a topic notification will not be sent.
|
|
||||||
if (!$send_topic_notification)
|
|
||||||
>>>>>>> c3f1f31... [ticket/12270] Correct notifications for posts/topics now working
|
|
||||||
=======
|
|
||||||
// Send post notification only if a topic notification will not be sent.
|
|
||||||
else
|
|
||||||
>>>>>>> a21cc11... [ticket/12270] Better structured code and no debug error message
|
|
||||||
{
|
{
|
||||||
$phpbb_notifications->add_notifications(array(
|
$phpbb_notifications->add_notifications(array(
|
||||||
'quote',
|
'quote',
|
||||||
|
@ -682,6 +674,7 @@ class mcp_queue
|
||||||
'post',
|
'post',
|
||||||
), $post_data);
|
), $post_data);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$phpbb_notifications->delete_notifications('post_in_queue', $post_id);
|
$phpbb_notifications->delete_notifications('post_in_queue', $post_id);
|
||||||
|
|
||||||
$phpbb_notifications->mark_notifications_read(array(
|
$phpbb_notifications->mark_notifications_read(array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue