Check for empty baseurl
This commit is contained in:
parent
fd62629285
commit
cd99b9706b
|
@ -2044,6 +2044,10 @@ class Probe
|
|||
*/
|
||||
private static function updateFromNoScrape(array $data)
|
||||
{
|
||||
if (empty($data['baseurl'])) {
|
||||
return '';
|
||||
}
|
||||
|
||||
// Check the 'noscrape' endpoint when it is a Friendica server
|
||||
$gserver = DBA::selectFirst('gserver', ['noscrape'], ["`nurl` = ? AND `noscrape` != ''",
|
||||
Strings::normaliseLink($data['baseurl'])]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user