Revert "item_store(): deduplicate by mid OR uuid"
This reverts commit 0d0ede7b14
.
This commit is contained in:
parent
0d0ede7b14
commit
28c3259449
@ -1930,9 +1930,8 @@ function item_store($arr, $allow_exec = false, $deliver = true) {
|
||||
if($parent_deleted)
|
||||
$arr['item_deleted'] = 1;
|
||||
|
||||
$r = q("SELECT id FROM item WHERE (mid = '%s' OR uuid = '%s') AND uid = %d and revision = %d LIMIT 1",
|
||||
$r = q("SELECT id FROM item WHERE mid = '%s' AND uid = %d and revision = %d LIMIT 1",
|
||||
dbesc($arr['mid']),
|
||||
dbesc($arr['uuid']),
|
||||
intval($arr['uid']),
|
||||
intval($arr['revision'])
|
||||
);
|
||||
|
Reference in New Issue
Block a user