aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-09-04 20:18:59 +0000
committerMario <mario@mariovavti.com>2021-09-04 20:18:59 +0000
commit0e1e1cda7ab78baff4f960580c2a0fa92f97c0eb (patch)
tree8be94a58656a6888171e2225c1f0ac6bc7fe1234 /Zotlabs
parentb3f2374b5789e04b3c3cea6a23070d171f393ea4 (diff)
downloadvolse-hubzilla-0e1e1cda7ab78baff4f960580c2a0fa92f97c0eb.tar.gz
volse-hubzilla-0e1e1cda7ab78baff4f960580c2a0fa92f97c0eb.tar.bz2
volse-hubzilla-0e1e1cda7ab78baff4f960580c2a0fa92f97c0eb.zip
fix regressions in mod hq
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Hq.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Module/Hq.php b/Zotlabs/Module/Hq.php
index 4e9e75357..929f2b758 100644
--- a/Zotlabs/Module/Hq.php
+++ b/Zotlabs/Module/Hq.php
@@ -23,11 +23,12 @@ class Hq extends \Zotlabs\Web\Controller {
function get($update = 0, $load = false) {
- if(!local_channel())
+ if(!local_channel()) {
return;
+ }
if(argc() > 1 && argv(1) !== 'load') {
- $item_hash = argv(1);
+ $item_hash = unpack_link_id(argv(1));
}
if(isset($_REQUEST['mid'])) {
@@ -46,6 +47,7 @@ class Hq extends \Zotlabs\Web\Controller {
$r = q("SELECT mid FROM item
WHERE uid = %d $item_normal
AND mid = parent_mid
+ AND item_private IN (0, 1)
ORDER BY created DESC LIMIT 1",
intval(local_channel())
);
@@ -126,7 +128,6 @@ class Hq extends \Zotlabs\Web\Controller {
// if we got a decoded hash we must encode it again before handing to javascript
$mid = gen_link_id($target_item['mid']);
-
}
else {
$mid = '';