mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-09 11:48:47 +00:00
FIX: Get topic's category instead of array's (#388)
Currently we're seeing 500s when related_topics are getting rendered. We should get the topic's category rather than on the array. ``` ActionView::Template::Error (undefined method `category' for [#<Topic id ... ] ```
This commit is contained in:
parent
933784a873
commit
73c58155f8
@ -40,7 +40,7 @@
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% if t.pinned_until && (t.pinned_until > Time.zone.now) && (t.pinned_globally || @list.category) && t.excerpt %>
|
||||
<% if t.pinned_until && (t.pinned_until > Time.zone.now) && (t.pinned_globally || t.category) && t.excerpt %>
|
||||
<p class='excerpt'>
|
||||
<%= t.excerpt.html_safe %>
|
||||
</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user