diff options
author | Mario <mario@mariovavti.com> | 2023-04-23 18:44:39 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-04-23 18:44:39 +0000 |
commit | 8a14e4261d3247dc02254cb91fdb9b82e051f324 (patch) | |
tree | ebe993e4e2f840897ecc5676f6dee4aa80d59460 /Zotlabs/Module/Item.php | |
parent | 6c9f1de2659514d42b084bf1900ecaa97a1deb0b (diff) | |
download | volse-hubzilla-8a14e4261d3247dc02254cb91fdb9b82e051f324.tar.gz volse-hubzilla-8a14e4261d3247dc02254cb91fdb9b82e051f324.tar.bz2 volse-hubzilla-8a14e4261d3247dc02254cb91fdb9b82e051f324.zip |
check for uuid so that will be also catch items that were posted from alternate locations
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r-- | Zotlabs/Module/Item.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index a61785a8b..a5f66d72e 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -63,8 +63,8 @@ class Item extends Controller { // do we have the item (at all)? - $r = q("select parent_mid from item where mid = '%s' $item_normal limit 1", - dbesc(z_root() . '/item/' . $item_id) + $r = q("select parent_mid from item where uuid = '%s' $item_normal limit 1", + dbesc($item_id) ); if (!$r) { @@ -177,8 +177,7 @@ class Item extends Controller { // do we have the item (at all)? // add preferential bias to item owners (item_wall = 1) - $r = q("select * from item where mid = '%s' or uuid = '%s' $item_normal order by item_wall desc limit 1", - dbesc(z_root() . '/item/' . $item_id), + $r = q("select * from item where uuid = '%s' $item_normal order by item_wall desc limit 1", dbesc($item_id) ); |