unsolving a topic does not remove the icon in the topic list
This commit is contained in:
parent
afb1c91c11
commit
6177d2e164
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue