diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-03-24 21:22:20 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-03-24 21:22:20 +0100 |
commit | 8ca2a5832cd30ae8152f7c56a8705150fcfd8af1 (patch) | |
tree | faf130b5332c30cb5b9acbee0bf2fdf1225641e6 /include | |
parent | 333534dfe7ddd87dcab9e1196f37694b75b6bd17 (diff) | |
download | volse-hubzilla-8ca2a5832cd30ae8152f7c56a8705150fcfd8af1.tar.gz volse-hubzilla-8ca2a5832cd30ae8152f7c56a8705150fcfd8af1.tar.bz2 volse-hubzilla-8ca2a5832cd30ae8152f7c56a8705150fcfd8af1.zip |
Revert "item_store(): deduplicate by mid OR uuid"
This reverts commit d8ce0d0df0b7b58b3f2a1abfc26f455fb943f8ea.
Diffstat (limited to 'include')
-rwxr-xr-x | include/items.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 6857964fb..c9c2e2d48 100755 --- a/include/items.php +++ b/include/items.php @@ -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']) ); |