Add check for null reply_to_user

This commit is contained in:
FloatingGhost 2022-12-07 13:41:12 +00:00 committed by Sam Therapy
parent 5a52b25398
commit c12b6c76b9
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD

View file

@ -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 %>