Adds the ability for voting on a topic within a specified category in Discourse.
Go to file
Régis Hanol 15949af1b9 FIX: suggested topics had their topic_ids set to a post_id
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'.
2020-08-17 11:15:24 +02:00
app FIX: move data to separate tables (#52) 2020-08-17 15:01:33 +10:00
assets FIX: move data to separate tables (#52) 2020-08-17 15:01:33 +10:00
config FIX: move data to separate tables (#52) 2020-08-17 15:01:33 +10:00
db/migrate FIX: move data to separate tables (#52) 2020-08-17 15:01:33 +10:00
lib/discourse_voting FIX: dont error when topic without category 2020-08-17 16:18:16 +10:00
spec FIX: dont error when topic without category 2020-08-17 16:18:16 +10:00
.eslintrc FIX: when selecting "votes" it would not be selected 2019-11-05 16:14:13 +11:00
.gitignore FIX: Broken tests 2020-07-07 16:15:16 -04:00
.rubocop.yml DEV: Add rubocop-discourse gem 2020-05-06 18:14:42 +02:00
.travis.yml DEV: Enable Travis CI. 2019-10-08 12:48:55 +03:00
Gemfile DEV: Switch from Transifex to Crowdin 2020-07-16 14:01:38 +02:00
Gemfile.lock DEV: Switch from Transifex to Crowdin 2020-07-16 14:01:38 +02:00
LICENSE.txt Add who voted to vote count 2016-03-17 15:47:02 -05:00
README.md Rename feature voting to voting 2017-03-06 15:38:26 -05:00
package.json Use eslint-config-discourse for dev dependencies 2020-08-05 15:57:39 -04:00
plugin.rb FIX: suggested topics had their topic_ids set to a post_id 2020-08-17 11:15:24 +02:00
translator.yml DEV: Switch from Transifex to Crowdin 2020-07-16 14:01:38 +02:00
yarn.lock Use eslint-config-discourse for dev dependencies 2020-08-05 15:57:39 -04:00

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