aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-07-29 12:29:39 +0000
committerMario <mario@mariovavti.com>2021-07-29 12:29:39 +0000
commit562a160a527cc2a43413816d18ecfe078ae01095 (patch)
tree28a774b8ee6203221868eb7762733c99661db4ad /Zotlabs/Lib
parentcb57c4ea188b982119f515f043a72f037f943025 (diff)
downloadvolse-hubzilla-562a160a527cc2a43413816d18ecfe078ae01095.tar.gz
volse-hubzilla-562a160a527cc2a43413816d18ecfe078ae01095.tar.bz2
volse-hubzilla-562a160a527cc2a43413816d18ecfe078ae01095.zip
remove another possible source for hubloc confusion
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Libzot.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index ae8c725d7..e0e13eb60 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -1910,16 +1910,18 @@ class Libzot {
// logger($AS->debug());
- $r = q("select hubloc_hash from hubloc where hubloc_id_url = '%s' limit 1",
+ $r = q("select hubloc_hash, hubloc_network from hubloc where hubloc_id_url = '%s'",
dbesc($AS->actor['id'])
);
+ $r = self::zot_record_preferred($r);
if (!$r) {
$y = import_author_xchan(['url' => $AS->actor['id']]);
if ($y) {
- $r = q("select hubloc_hash from hubloc where hubloc_id_url = '%s' limit 1",
+ $r = q("select hubloc_hash, hubloc_network from hubloc where hubloc_id_url = '%s'",
dbesc($AS->actor['id'])
);
+ $r = self::zot_record_preferred($r);
}
if (!$r) {
logger('FOF Activity: no actor');
@@ -1935,9 +1937,8 @@ class Libzot {
}
}
-
if ($r) {
- $arr['author_xchan'] = $r[0]['hubloc_hash'];
+ $arr['author_xchan'] = $r['hubloc_hash'];
}
if ($signer) {