From 26df7595ac5366bd0f14f94ef961cf8af6b72ebb Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 12 Aug 2020 04:43:46 +0000 Subject: [PATCH] removed unneeded notification check --- src/Model/Item.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 4526be3e92..778b872bbb 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2018,14 +2018,7 @@ class Item if (!empty($contact['id'])) { $condition = ['uri-id' => $item['parent-uri-id'], 'uid' => $item['uid']]; Item::update(['owner-id' => $item['author-id'], 'contact-id' => $contact['id']], $condition); - $forum_item = Item::selectFirst(['id'], $condition); - if (!empty($forum_item['id'])) { - // This will trigger notifications like "X shared a new post" - UserItem::setNotification($forum_item['id']); - - check_user_notification($forum_item['id']); - } - LOgger::info('Convert message into a forum message', ['uri-id' => $item['uri-id'], 'parent-uri-id' => $item['parent-uri-id'], 'uid' => $item['uid'], 'owner-id' => $item['author-id'], 'contact-id' => $contact['id']]); + Logger::info('Convert message into a forum message', ['uri-id' => $item['uri-id'], 'parent-uri-id' => $item['parent-uri-id'], 'uid' => $item['uid'], 'owner-id' => $item['author-id'], 'contact-id' => $contact['id']]); } } -- 2.39.2