Add check for null reply_to_user
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
FloatingGhost 2022-12-07 13:41:12 +00:00
parent 1afba64464
commit cb3ccf5f47

View file

@ -46,9 +46,11 @@
<%= gettext("Reply to") %> <%= gettext("Reply to") %>
</a> </a>
<span class="h-card"> <span class="h-card">
<a href="<%= (@reply_to_user.uri || @reply_to_user.ap_id) %>" class="u-url mention"> <%= if @reply_to_user do %>
@<%= @reply_to_user.nickname %> <a href="<%= (@reply_to_user.uri || @reply_to_user.ap_id) %>" class="u-url mention">
</a> @<%= @reply_to_user.nickname %>
</a>
<% end %>
</span> </span>
</div> </div>
<% end %> <% end %>