diff options
author | Mario <mario@mariovavti.com> | 2024-11-28 15:12:57 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-11-28 15:12:57 +0000 |
commit | 0bffe6e01974ea30ae4d9749fdb2be37690faf0c (patch) | |
tree | c1335c494126c5a77fb926ccd646b6ebf6723b05 /Zotlabs/Module | |
parent | 9e2f3dc05f411ec7af96cb4831aea0381ab34a99 (diff) | |
download | volse-hubzilla-0bffe6e01974ea30ae4d9749fdb2be37690faf0c.tar.gz volse-hubzilla-0bffe6e01974ea30ae4d9749fdb2be37690faf0c.tar.bz2 volse-hubzilla-0bffe6e01974ea30ae4d9749fdb2be37690faf0c.zip |
sql lookup by uuid should be sufficient by now, remove superfluous require_once()
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Item.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 8ded7c1d7..c0e59633b 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -53,9 +53,7 @@ class Item extends Controller { if (argc() > 1 && argv(1) !== 'drop') { - $x = q("select uid, item_wall, llink, mid, uuid from item where mid = '%s' or mid = '%s' or uuid = '%s'", - dbesc(z_root() . '/item/' . argv(1)), - dbesc(z_root() . '/activity/' . argv(1)), + $x = q("select uid, item_wall, llink, uuid from item where uuid = '%s'", dbesc(argv(1)) ); if ($x) { @@ -1246,8 +1244,6 @@ class Item extends Controller { if ((argc() == 3) && (argv(1) === 'drop') && intval(argv(2))) { - require_once('include/items.php'); - $i = q("select * from item where id = %d limit 1", intval(argv(2)) ); |