Avoid "Duplicate entry"
This commit is contained in:
parent
c3398511b4
commit
41061a7ec1
|
@ -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']];
|
$condition = ['uri-id' => $item['uri-id'], 'uid' => $item['uid'], 'network' => $item['network']];
|
||||||
if (Post::exists($condition)) {
|
if (Post::exists($condition)) {
|
||||||
Logger::notice('Item is already inserted - aborting', $condition);
|
Logger::notice('Item is already inserted - aborting', $condition);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user