Fix error when webmention author can’t be found
This commit is contained in:
parent
24de3da367
commit
977f06ec56
2 changed files with 16 additions and 3 deletions
|
@ -90,6 +90,11 @@ class WebMention extends Model
|
|||
{
|
||||
$authorship = new Authorship();
|
||||
$hCard = $authorship->findAuthor(json_decode($this->mf2, true));
|
||||
|
||||
if ($hCard === false) {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (
|
||||
array_key_exists('properties', $hCard) &&
|
||||
array_key_exists('photo', $hCard['properties'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue