Refactor Conversation Timeline
This commit is contained in:
parent
c79f3cde22
commit
ec0c3bf96e
2 changed files with 58 additions and 47 deletions
|
|
@ -565,6 +565,8 @@ class Probe
|
|||
$nick = '';
|
||||
$addr = '';
|
||||
|
||||
$path_parts = [];
|
||||
|
||||
if (array_key_exists('path', $parts) && trim(strval($parts['path']), '/') !== '') {
|
||||
$path_parts = explode('/', trim($parts['path'], '/'));
|
||||
|
||||
|
|
@ -578,7 +580,7 @@ class Probe
|
|||
}
|
||||
|
||||
if (empty($webfinger) && empty($lrdd)) {
|
||||
while (empty($lrdd) && empty($webfinger) && (sizeof($path_parts) > 1)) {
|
||||
while (empty($lrdd) && empty($webfinger) && (count($path_parts) > 1)) {
|
||||
$host .= '/' . array_shift($path_parts);
|
||||
$baseurl = $parts['scheme'] . '://' . $host;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue