aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-25 18:44:33 +0000
committerMario <mario@mariovavti.com>2022-11-25 18:44:33 +0000
commitae1fad5de7aa8b42b9e7e0719502bf914228b1bf (patch)
tree20540d542905b500d95c447d7cddf61318567b69
parent68ca8951a85973cf385f23b6147f51718563d7bf (diff)
downloadvolse-hubzilla-ae1fad5de7aa8b42b9e7e0719502bf914228b1bf.tar.gz
volse-hubzilla-ae1fad5de7aa8b42b9e7e0719502bf914228b1bf.tar.bz2
volse-hubzilla-ae1fad5de7aa8b42b9e7e0719502bf914228b1bf.zip
basically every incoming item should have a uuid by now
-rw-r--r--include/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index b414928fd..752251a7e 100644
--- a/include/items.php
+++ b/include/items.php
@@ -1848,8 +1848,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' AND uid = %d and revision = %d LIMIT 1",
- dbesc($arr['mid']),
+ $r = q("SELECT id FROM item WHERE uuid = '%s' AND uid = %d and revision = %d LIMIT 1",
+ dbesc($arr['uuid']),
intval($arr['uid']),
intval($arr['revision'])
);