unsolving a topic does not remove the icon in the topic list

This commit is contained in:
Arpit Jalan 2016-05-03 00:40:01 +05:30
parent afb1c91c11
commit 6177d2e164
1 changed files with 1 additions and 5 deletions

View File

@ -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