mirror of
https://github.com/friendica/friendica
synced 2025-04-24 02:30:13 +00:00
Ensure url property of Probe::uri result is used authoritatively
- Some profile URLs aren't canonical and need to be updated during probe
This commit is contained in:
parent
abd5b2a881
commit
50d05cec83
8 changed files with 16 additions and 20 deletions
|
@ -297,8 +297,8 @@ function dfrn_request_post(App $a)
|
|||
$data = Probe::uri($url);
|
||||
$network = $data["network"];
|
||||
|
||||
// Canonicalise email-style profile locator
|
||||
$url = Probe::webfingerDfrn($url, $hcard);
|
||||
// Canonicalize email-style profile locator
|
||||
$url = Probe::webfingerDfrn($data['url'], $hcard);
|
||||
|
||||
if (substr($url, 0, 5) === 'stat:') {
|
||||
// Every time we detect the remote subscription we define this as OStatus.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue