diff options
author | zotlabs <mike@macgirvin.com> | 2018-01-28 21:43:50 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-01-28 21:43:50 -0800 |
commit | c1e44c0f54e2dc9a340f0d619fa8082ec12947c1 (patch) | |
tree | 3bb0deca1c350445bcc8935afa2536bd842007e7 /Zotlabs/Module/Hq.php | |
parent | 5cf2bf6b29fde04ddc791af8ce21731818bedb7a (diff) | |
parent | edf6ad9eda323f6e04823b8c110d21d82d519d32 (diff) | |
download | volse-hubzilla-c1e44c0f54e2dc9a340f0d619fa8082ec12947c1.tar.gz volse-hubzilla-c1e44c0f54e2dc9a340f0d619fa8082ec12947c1.tar.bz2 volse-hubzilla-c1e44c0f54e2dc9a340f0d619fa8082ec12947c1.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'Zotlabs/Module/Hq.php')
-rw-r--r-- | Zotlabs/Module/Hq.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Module/Hq.php b/Zotlabs/Module/Hq.php index a9c3bb8e2..c46695b65 100644 --- a/Zotlabs/Module/Hq.php +++ b/Zotlabs/Module/Hq.php @@ -29,6 +29,8 @@ class Hq extends \Zotlabs\Web\Controller { ); } + killme(); + } function get($update = 0, $load = false) { @@ -49,9 +51,11 @@ class Hq extends \Zotlabs\Web\Controller { $item_normal = item_normal(); $item_normal_update = item_normal_update(); + $use_index = db_use_index('created'); + if(! $item_hash) { - $r = q("SELECT mid FROM item - WHERE uid = %d + $r = q("SELECT mid FROM item $use_index + WHERE uid = %d $item_normal AND mid = parent_mid ORDER BY created DESC LIMIT 1", intval(local_channel()) |