nil fix when getting post title

This commit is contained in:
Dylan Knutson
2025-03-04 17:38:13 +00:00
parent 259ace9862
commit 59a0f8a349

View File

@@ -10,7 +10,7 @@
<% post = neighbor.post %>
<% creator = post.class.has_creators? ? post.creator : nil %>
<div class="text-md flex items-center px-4 py-1 <%= border_classes %>">
<%= render "domain/has_description_html/inline_link_domain_post", post: post, link_text: post.title, visual_style: "sky-link" %>
<%= render "domain/has_description_html/inline_link_domain_post", post: post, link_text: post.title_for_view, visual_style: "sky-link" %>
</div>
<% if creator %>
<div class="text-md items-center px-4 py-1 <%= border_classes %>">