mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Merge pull request #7292 from annando/notice
Fix a notice when the author is missing
This commit is contained in:
commit
9ed262ced6
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ class Fetch extends BaseModule
|
|||
$item = Item::selectFirst(['author-link'], $condition);
|
||||
if (empty($item)) {
|
||||
$parts = parse_url($item["author-link"]);
|
||||
if (empty($parts["scheme"]) || empty($parts["host"])) {
|
||||
throw new HTTPException\InternalServerErrorException();
|
||||
}
|
||||
$host = $parts["scheme"] . "://" . $parts["host"];
|
||||
|
||||
if (Strings::normaliseLink($host) != Strings::normaliseLink($app->getBaseURL())) {
|
||||
|
|
Loading…
Reference in a new issue