From 6f1b246b6545708a849cf4514bb86786f678541d Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Thu, 5 Dec 2019 17:07:09 -0300 Subject: [PATCH] FEATURE: Adds the full HTML of a vote option to poll export --- lib/queries.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/queries.rb b/lib/queries.rb index 584be9d..a09e7bd 100644 --- a/lib/queries.rb +++ b/lib/queries.rb @@ -471,13 +471,16 @@ class Queries users.id AS user_id, users.username, users.name, - users.trust_level + users.trust_level, + poll_options.html AS vote_option_full FROM poll_votes INNER JOIN polls ON polls.id = poll_votes.poll_id INNER JOIN users ON users.id = poll_votes.user_id + INNER JOIN + poll_options ON poll_votes.poll_id = poll_options.poll_id AND poll_votes.poll_option_id = poll_options.id WHERE polls.name = :poll_name AND polls.post_id = :post_id