forked from GNUsocial/gnu-social
return empty hints if no hcard in the html
This commit is contained in:
parent
1e03968d91
commit
5092f98c0d
@ -65,6 +65,10 @@ class DiscoveryHints {
|
||||
{
|
||||
$hcard = self::_hcard($body, $url);
|
||||
|
||||
if (empty($hcard)) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$hints = array();
|
||||
|
||||
// XXX: don't copy stuff into an array and then copy it again
|
||||
|
Loading…
Reference in New Issue
Block a user