aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-05-02 14:45:26 +0000
committerMario <mario@mariovavti.com>2024-05-02 14:45:26 +0000
commit2fb9c0ec0d77a3754a7c1f35e5c3e0742bfed3b1 (patch)
treeebd28fd984a0ac7e2e4eea039e4b35d59583ce5a /Zotlabs
parent98c3e2f93f18554364e26e9cf25473d36641a173 (diff)
parentfb4568001d5669055f8a5c010b04fd460bb43a43 (diff)
downloadvolse-hubzilla-2fb9c0ec0d77a3754a7c1f35e5c3e0742bfed3b1.tar.gz
volse-hubzilla-2fb9c0ec0d77a3754a7c1f35e5c3e0742bfed3b1.tar.bz2
volse-hubzilla-2fb9c0ec0d77a3754a7c1f35e5c3e0742bfed3b1.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Libzot.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 89157bf5e..bc944c97c 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -2569,9 +2569,14 @@ class Libzot {
if (!$observer)
return '';
- $parsed = parse_url($observer['xchan_url']);
+ $url = $observer['xchan_url'];
+ if (preg_match('|^https?://|', $url) === 0) {
+ $url = "https://{$url}";
+ }
+
+ $parsed = parse_url($url);
- return $parsed['scheme'] . '://' . $parsed['host'] . (($parsed['port']) ? ':' . $parsed['port'] : '') . '/rpost?f=';
+ return $parsed['scheme'] . '://' . $parsed['host'] . (isset($parsed['port']) ? ':' . $parsed['port'] : '') . '/rpost?f=';
}
/**