From db35674cc4164945218781dfad388e4be77a3f31 Mon Sep 17 00:00:00 2001 From: Maja Komel Date: Fri, 10 May 2019 10:43:11 +0200 Subject: [PATCH] FIX: show solved icon on categories with featured topics page --- plugin.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin.rb b/plugin.rb index 2974f7e..ebcb45d 100644 --- a/plugin.rb +++ b/plugin.rb @@ -522,6 +522,10 @@ SQL include TopicAnswerMixin end + class ::ListableTopicSerializer + include TopicAnswerMixin + end + TopicList.preloaded_custom_fields << "accepted_answer_post_id" if TopicList.respond_to? :preloaded_custom_fields Site.preloaded_category_custom_fields << "enable_accepted_answers" if Site.respond_to? :preloaded_category_custom_fields Search.preloaded_topic_custom_fields << "accepted_answer_post_id" if Search.respond_to? :preloaded_topic_custom_fields