aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-02-01 14:14:53 +0000
committerMario <mario@mariovavti.com>2024-02-01 14:14:53 +0000
commitdecc8f21621f6c0bb129285757e6d24f278216d2 (patch)
treec4e544421ee548dc011da8530f8feacad978bd3a /Zotlabs/Lib/Activity.php
parent7d7a0c160f004c983f8ffc6361c06d0dae0a4af8 (diff)
downloadvolse-hubzilla-decc8f21621f6c0bb129285757e6d24f278216d2.tar.gz
volse-hubzilla-decc8f21621f6c0bb129285757e6d24f278216d2.tar.bz2
volse-hubzilla-decc8f21621f6c0bb129285757e6d24f278216d2.zip
strip a possible fragment
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index a25344611..782773da3 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -3500,6 +3500,8 @@ class Activity {
static function get_actor_hublocs($url, $options = 'all') {
+ $url = ((strpos($url, '#')) ? substr($url, 0, strpos($url, '#')) : $url);
+
switch ($options) {
case 'activitypub':
$hublocs = q("select * from hubloc left join xchan on hubloc_hash = xchan_hash where hubloc_hash = '%s' and hubloc_deleted = 0 order by hubloc_id desc",