Avoid "Duplicate entry"

pull/9890/head
Michael 2021-01-30 22:39:06 +00:00
parent c3398511b4
commit 41061a7ec1
1 changed files with 0 additions and 3 deletions

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