From 73c58155f863eb8afb0f186d6098a0dbe08799c0 Mon Sep 17 00:00:00 2001 From: Natalie Tay Date: Fri, 29 Dec 2023 16:52:48 +0800 Subject: [PATCH] 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 [# <% end %> - <% 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 %>

<%= t.excerpt.html_safe %>