aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Hq.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-03-02 12:39:21 +0000
committerMario <mario@mariovavti.com>2023-03-02 12:39:21 +0000
commitd81473487f8ef9b22aaa37b0da80265af5e72bc1 (patch)
tree9555c1a56d97f7b61835a21dd9e0da9d12316385 /Zotlabs/Module/Hq.php
parent06a8d5a4fa7612d40cc387330952d426d26aea2a (diff)
downloadvolse-hubzilla-d81473487f8ef9b22aaa37b0da80265af5e72bc1.tar.gz
volse-hubzilla-d81473487f8ef9b22aaa37b0da80265af5e72bc1.tar.bz2
volse-hubzilla-d81473487f8ef9b22aaa37b0da80265af5e72bc1.zip
minor cleanup and docu
Diffstat (limited to 'Zotlabs/Module/Hq.php')
-rw-r--r--Zotlabs/Module/Hq.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Hq.php b/Zotlabs/Module/Hq.php
index 7e75f0136..77d56e9a2 100644
--- a/Zotlabs/Module/Hq.php
+++ b/Zotlabs/Module/Hq.php
@@ -51,7 +51,7 @@ class Hq extends \Zotlabs\Web\Controller {
$o = '';
if($item_hash) {
-
+ // select the target item with a bias to our own item
$sql_order = ((local_channel() > $sys['channel_id']) ? 'DESC' : 'ASC');
$r = q("select id, uid, mid, parent_mid, thr_parent, verb, item_type, item_deleted, item_blocked from item where uid in (%d, %d) and mid = '%s' order by uid $sql_order limit 2",
@@ -62,7 +62,7 @@ class Hq extends \Zotlabs\Web\Controller {
if($r) {
$target_item = $r[0];
- if (intval($r[0]['uid']) === intval($sys['channel_id'])) {
+ if (intval($target_item['uid']) === intval($sys['channel_id'])) {
$sys_item = true;
}
}