From 6177d2e1640dc49f4c0496e8bc1ade4c9c2a3c62 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Tue, 3 May 2016 00:40:01 +0530 Subject: [PATCH] unsolving a topic does not remove the icon in the topic list --- plugin.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugin.rb b/plugin.rb index 9b1a407..bbe479b 100644 --- a/plugin.rb +++ b/plugin.rb @@ -256,12 +256,8 @@ after_initialize do class ::TopicListItemSerializer attributes :has_accepted_answer - def include_has_accepted_answer? - object.custom_fields["accepted_answer_post_id"] - end - def has_accepted_answer - true + object.custom_fields["accepted_answer_post_id"] ? true : false end end