Commit Graph

9 Commits

Author SHA1 Message Date
Régis Hanol b269689ddf
FIX: delete solution with post (#256)
Ensures we remove the solution when the post marked as the solution is deleted.

DEV: Added `IS_ACCEPTED_ANSWER_CUSTOM_FIELD` constant.
DEV: Refactored the `PostSerializer` for better readability.
PERF: Improved the `TopicViewSerializer`'s performance by looking up the `accepted_answer_post_info` from the stream first.

Internal ref. dev/112251
2023-10-13 19:06:03 +02:00
tshenry 55c9fca212
FIX: typo in mixin and incorrect setting description (#165)
`allow_accepted_answer` should be `allow_accepted_answers` (with an `s` at the end) in the `TopicAnswerMixin`.

The `enable_solved_tags` setting description seemed to be using the description intended for `allow_solved_on_all_topics`. Both descriptions have been updated.
2021-09-17 18:07:01 -07:00
Roman Rizzi 66999ee3fb
FEATURE: Enable solved for topics with specific tags. (#164)
This PR adds a site setting called `enable_solved_tags`. Solved will be enabled for topics containing these tags, just like we do for specific categories.
2021-09-17 11:12:47 -03:00
Penar Musaraj 96abbd9c19 Rubocop redundant return fix 2019-11-14 15:06:49 -05:00
Guo Xiang Tan 75046f1d92 Add frozen string literal comment to files. 2019-05-13 11:04:27 +08:00
Vinoth Kannan d0cf9c258b FIX: Include the serializer fields only if plugin is enabled 2019-03-18 18:02:55 +05:30
Vinoth Kannan 6fb6f8849b Revert "REVERT: 'FEATURE: Add solved icon for topic titles in search results and other topic lists'"
This reverts commit 6dbd420c9e.
2019-03-13 22:40:54 +05:30
Vinoth Kannan 6dbd420c9e REVERT: 'FEATURE: Add solved icon for topic titles in search results and other topic lists' 2019-03-13 19:38:31 +05:30
Vinoth Kannan e9be43becd FEATURE: Add solved icon for topic titles in search results and other topic lists 2019-03-13 15:59:07 +05:30