discourse/plugins/discourse-topic-voting/app/controllers/discourse_topic_voting
Martin Brennan a5dca201d8
DEV: Refactor topic voting controller endpoints into services (#39312)
* Move topic vote and unvote controller logic into
`DiscourseTopicVoting::Votes::Cast` and `Remove` services
* Handle stale `topic_id` values through service result matching instead
of raising from controller logic
* Preserve archived votes by only removing active votes during unvote
* Keep webhook payloads and vote response behavior intact while
tightening mutation flow coverage
2026-04-22 08:42:20 +10:00
..
votes_controller.rb DEV: Refactor topic voting controller endpoints into services (#39312) 2026-04-22 08:42:20 +10:00