mirror of
https://github.com/friendica/friendica
synced 2024-11-18 18:23:40 +00:00
Remove all-numeric usernames condition
- False negatives aren't recoverable
This commit is contained in:
parent
1321a52f15
commit
f409bd7034
1 changed files with 1 additions and 6 deletions
|
@ -529,12 +529,7 @@ class Probe
|
|||
$path_parts = explode('/', trim($parts['path'] ?? '', '/'));
|
||||
if (!empty($path_parts)) {
|
||||
$nick = ltrim(end($path_parts), '@');
|
||||
// When the last part of the URI is numeric then it is most likely an ID and not a nick name
|
||||
if (!is_numeric($nick)) {
|
||||
$addr = $nick . '@' . $host;
|
||||
} else {
|
||||
$nick = '';
|
||||
}
|
||||
$addr = $nick . '@' . $host;
|
||||
}
|
||||
|
||||
$webfinger = self::getWebfinger($parts['scheme'] . '://' . $host . self::WEBFINGER, 'application/jrd+json', $uri, $addr);
|
||||
|
|
Loading…
Reference in a new issue