The fix is pretty simple result = result.select("*, ... AS current_user_voted") become result = result.select("topics.*, ... AS current_user_voted") I also merged all 3 'TopicQuery.results_filter_callbacks' into one and did some slight refactoring on the 'add_to_serializer'. |
||
---|---|---|
app | ||
assets | ||
config | ||
db/migrate | ||
lib/discourse_voting | ||
spec | ||
.eslintrc | ||
.gitignore | ||
.rubocop.yml | ||
.travis.yml | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE.txt | ||
README.md | ||
package.json | ||
plugin.rb | ||
translator.yml | ||
yarn.lock |
README.md
Discourse Voting
Adds the ability for voting on a topic within a specified category.
Topic discussing the plugin itself can be found here: https://meta.discourse.org/t/discourse-voting/40121