From 84383ecd311f891640576b3427e89caae2702b70 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sat, 30 Nov 2024 15:31:17 +0000 Subject: [PATCH] Apply the same fix to replies and reposts --- resources/views/notes/show.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/notes/show.blade.php b/resources/views/notes/show.blade.php index 73de4216..11e347bf 100644 --- a/resources/views/notes/show.blade.php +++ b/resources/views/notes/show.blade.php @@ -13,7 +13,7 @@ @if (array_key_exists('photo', $reply['author']['properties'])) @endif - {{ $reply['author']['properties']['name'][0] }} + {{ $reply['author']['properties']['name'][0] ?? $reply['author']['properties']['nickname'][0] ?? 'unknown' }} @else Unknown author @@ -47,7 +47,7 @@ return ($webmention->type == 'repost-of'); }) as $repost) - {{ $repost['author']['properties']['name'][0] }} reposted this at {{ $repost['published'] }} + {{ $repost['author']['properties']['name'][0] ?? $repost['author']['properties']['nickname'][0] ?? 'unknown' }} reposted this at {{ $repost['published'] }} @endforeach