Add check for null reply_to_user
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 7 Dec 2022 13:41:12 +0000 (13:41 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 7 Dec 2022 13:41:12 +0000 (13:41 +0000)
lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex

index 6585e81b663683937bf5d07234148e6f3e330042..793f4ad51a0ccedfc864644ff00f537721337582 100644 (file)
           <%= 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 %>