forked from friendica/friendica-addons
Compare commits
2 commits
7a7dbb579d
...
956233ff1d
Author | SHA1 | Date | |
---|---|---|---|
Tobias Diekershoff | 956233ff1d | ||
Michael | 14e1c96775 |
|
@ -1765,9 +1765,16 @@ function bluesky_get_did_by_profile(string $url): string
|
|||
return '';
|
||||
}
|
||||
$profile = $curlResult->getBodyString();
|
||||
if (empty($profile)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$doc = new DOMDocument();
|
||||
@$doc->loadHTML($profile);
|
||||
try {
|
||||
@$doc->loadHTML($profile);
|
||||
} catch (\Throwable $th) {
|
||||
return '';
|
||||
}
|
||||
$xpath = new DOMXPath($doc);
|
||||
$list = $xpath->query('//p[@id]');
|
||||
foreach ($list as $node) {
|
||||
|
|
Loading…
Reference in a new issue