FEATURE: Adds the full HTML of a vote option to poll export

This commit is contained in:
Rafael dos Santos Silva 2019-12-05 17:07:09 -03:00
parent 3ea9a77b27
commit 6f1b246b65

View File

@ -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