Check for empty baseurl
This commit is contained in:
parent
fd62629285
commit
cd99b9706b
1 changed files with 5 additions and 1 deletions
|
@ -2044,9 +2044,13 @@ class Probe
|
||||||
*/
|
*/
|
||||||
private static function updateFromNoScrape(array $data)
|
private static function updateFromNoScrape(array $data)
|
||||||
{
|
{
|
||||||
|
if (empty($data['baseurl'])) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
// Check the 'noscrape' endpoint when it is a Friendica server
|
// Check the 'noscrape' endpoint when it is a Friendica server
|
||||||
$gserver = DBA::selectFirst('gserver', ['noscrape'], ["`nurl` = ? AND `noscrape` != ''",
|
$gserver = DBA::selectFirst('gserver', ['noscrape'], ["`nurl` = ? AND `noscrape` != ''",
|
||||||
Strings::normaliseLink($data['baseurl'])]);
|
Strings::normaliseLink($data['baseurl'])]);
|
||||||
if (!DBA::isResult($gserver)) {
|
if (!DBA::isResult($gserver)) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue