aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
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
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')
-rw-r--r--Zotlabs/Lib/Activity.php1
-rw-r--r--Zotlabs/Lib/Libzot.php8
2 files changed, 3 insertions, 6 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 9a28b7038..0e044b355 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -70,6 +70,7 @@ class Activity {
}
static function fetch($url, $channel = null) {
+
$redirects = 0;
if (!check_siteallowed($url)) {
logger('blacklisted: ' . $url);
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']);
}
}