From ce2024b943321d24f958dc2946bac86899734629 Mon Sep 17 00:00:00 2001 From: Alex Thomassen Date: Tue, 26 Dec 2023 20:48:51 +0000 Subject: [PATCH] Fix issue where the user login on an action might be empty --- resources/views/components/moderator-actions.blade.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/views/components/moderator-actions.blade.php b/resources/views/components/moderator-actions.blade.php index 91497a0..c2218a6 100644 --- a/resources/views/components/moderator-actions.blade.php +++ b/resources/views/components/moderator-actions.blade.php @@ -27,7 +27,11 @@ @endif - {{ $action->user->login }} + + @if (!empty($action->user)) + {{ $action->user->login }} + @endif + @if ($showChannel) @php $channel = $action->channel->username();