From: FloatingGhost <hannah@coffee-and-dreams.uk>
Date: Wed, 7 Dec 2022 13:41:12 +0000 (+0000)
Subject: Add check for null reply_to_user
X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cb3ccf5f47b2e7a30cf89aae9d0c7b5a7be5307d;p=akkoma

Add check for null reply_to_user
---

diff --git a/lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex b/lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex
index 6585e81b6..793f4ad51 100644
--- a/lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex
+++ b/lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex
@@ -46,9 +46,11 @@
           <%= gettext("Reply to") %>
         </a>
         <span class="h-card">
-          <a href="<%= (@reply_to_user.uri || @reply_to_user.ap_id) %>" class="u-url mention">
-            @<%= @reply_to_user.nickname %>
-          </a>
+          <%= if @reply_to_user do %>
+            <a href="<%= (@reply_to_user.uri || @reply_to_user.ap_id) %>" class="u-url mention">
+              @<%= @reply_to_user.nickname %>
+            </a>
+          <% end %>
         </span>
       </div>
       <% end %>