mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-07-05 21:32:11 +00:00
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…
x
Reference in New Issue
Block a user