diff --git a/app/Models/WebMention.php b/app/Models/WebMention.php index 48fe5596..8e175bcb 100644 --- a/app/Models/WebMention.php +++ b/app/Models/WebMention.php @@ -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']) diff --git a/resources/views/notes/show.blade.php b/resources/views/notes/show.blade.php index 8f40c096..459cf5d5 100644 --- a/resources/views/notes/show.blade.php +++ b/resources/views/notes/show.blade.php @@ -9,9 +9,17 @@ return ($webmention->type == 'in-reply-to'); }) as $reply)