]> git.mxchange.org Git - friendica.git/commitdiff
Avoid "Duplicate entry"
authorMichael <heluecht@pirati.ca>
Sat, 30 Jan 2021 22:39:06 +0000 (22:39 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 30 Jan 2021 22:39:06 +0000 (22:39 +0000)
src/Model/Item.php

index cf844b10324ba408843049a2501f53fbb5056eaa..7c507498bb6caeb4930ee0408ab2de6530192687 100644 (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);