Avoid "Duplicate entry"
This commit is contained in:
		
					parent
					
						
							
								c3398511b4
							
						
					
				
			
			
				commit
				
					
						41061a7ec1
					
				
			
		
					 1 changed files with 0 additions and 3 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue