aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {