From 41061a7ec19f99ecec6a9ecc038d42482a588a8f Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 30 Jan 2021 22:39:06 +0000 Subject: [PATCH] Avoid "Duplicate entry" --- src/Model/Item.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index cf844b103..7c507498b 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1108,9 +1108,6 @@ class Item } } - // We syncronize the id value of the of the post-user table with the item table - $item['id'] = $id; - $condition = ['uri-id' => $item['uri-id'], 'uid' => $item['uid'], 'network' => $item['network']]; if (Post::exists($condition)) { Logger::notice('Item is already inserted - aborting', $condition);