aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-06-18 08:43:05 +0000
committerMario <mario@mariovavti.com>2023-06-18 08:43:05 +0000
commite275dae6e3fbb90dd66a52b7387108e64de88ed2 (patch)
tree82c4edbe9bca4dfe8256c64845d90f46198fd3a9 /Zotlabs/Lib/Libzot.php
parent88ccc2a3b967232a107b27cf0c7b4e27edb48604 (diff)
downloadvolse-hubzilla-e275dae6e3fbb90dd66a52b7387108e64de88ed2.tar.gz
volse-hubzilla-e275dae6e3fbb90dd66a52b7387108e64de88ed2.tar.bz2
volse-hubzilla-e275dae6e3fbb90dd66a52b7387108e64de88ed2.zip
use function to get actor hublocs
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 093670338..032fae3fc 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -1219,17 +1219,13 @@ class Libzot {
return;
}
- $r = q("select hubloc_hash, hubloc_network, hubloc_url from hubloc where hubloc_id_url = '%s' and hubloc_deleted = 0 order by hubloc_id desc",
- dbesc($AS->actor['id'])
- );
+ $r = Activity::get_actor_hublocs($AS->actor['id']);
if (! $r) {
// Author is unknown to this site. Perform channel discovery and try again.
$z = discover_by_webbie($AS->actor['id']);
if ($z) {
- $r = q("select hubloc_hash, hubloc_network, hubloc_url from hubloc where hubloc_id_url = '%s' and hubloc_deleted = 0 order by hubloc_id desc",
- dbesc($AS->actor['id'])
- );
+ $r = Activity::get_actor_hublocs($AS->actor['id']);
}
}