Avoid "Duplicate entry"

This commit is contained in:
Michael 2021-01-30 22:39:06 +00:00
parent c3398511b4
commit 41061a7ec1

View file

@ -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);