aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-02-19 13:36:53 -0800
committerzotlabs <mike@macgirvin.com>2019-02-19 13:36:53 -0800
commit51e9f302b01968106f8d13e6f887a2f2f4f1aa13 (patch)
tree60b5ff27a6bff01079c9e9ebb1b746656fac2b00
parent72fd1cc5a6f4e66eabe1b8ee6d6c28f3035389ad (diff)
downloadvolse-hubzilla-51e9f302b01968106f8d13e6f887a2f2f4f1aa13.tar.gz
volse-hubzilla-51e9f302b01968106f8d13e6f887a2f2f4f1aa13.tar.bz2
volse-hubzilla-51e9f302b01968106f8d13e6f887a2f2f4f1aa13.zip
hubzilla has uuid - use that instead of wildcard
-rw-r--r--Zotlabs/Module/Id.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Id.php b/Zotlabs/Module/Id.php
index cc43f0205..15abfa2a3 100644
--- a/Zotlabs/Module/Id.php
+++ b/Zotlabs/Module/Id.php
@@ -67,14 +67,14 @@ class Id extends Controller {
$sql_extra = item_permissions_sql(0);
- $r = q("select * from item where mid like '%s' $item_normal $sql_extra and uid = %d limit 1",
- dbesc('%/' . $item_id),
+ $r = q("select * from item where uuid = '%s' $item_normal $sql_extra and uid = %d limit 1",
+ dbesc($item_id),
intval($channel_id)
);
if(! $r) {
- $r = q("select * from item where mid like '%s' $item_normal and uid = %d limit 1",
- dbesc('%/' . $item_id),
+ $r = q("select * from item where uuid = '%s' $item_normal and uid = %d limit 1",
+ dbesc($item_id),
intval($channel_id)
);
if($r) {