stacker.news/fragments
SatsAllDay e3571af1e1
Make Polls Anonymous (#1197)
* make polls anonymous

Introduce a `PollBlindVote` DB table that tracks when a user votes in a poll,
but does not track which choice they made.

Alter the `PollVote` DB table to remove the `userId` column, meaning `PollVote`
now tracks poll votes anonymously - it captures votes per poll option,
but does not track which user submitted the vote.

Update the `poll_vote` DB function to work with both tables now.

Update the `item.poll` resolver to calculate `meVoted` based on the `PollBlindVote`
table instead of `PollVote`.

* remove `meVoted` on `PollOption`s

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-06-03 13:56:43 -05:00
..
blockHeight.js Add block height to price carousel (#484) 2023-09-12 10:56:02 -05:00
chainFee.js Add chain fees to price carousel (#658) 2023-12-20 16:06:22 -06:00
comments.js Add bot badge to items created with API key (#1209) 2024-05-30 16:23:07 -05:00
invites.js better organize user graphql types 2023-11-09 19:05:35 -06:00
items.js Make Polls Anonymous (#1197) 2024-06-03 13:56:43 -05:00
notifications.js Item mention notifications (#1208) 2024-06-03 12:12:42 -05:00
price.js Add proxy with cache for coinbase API requests (#226) 2023-01-27 17:20:33 -06:00
rewards.js allow viewing reward ranges 2023-08-29 19:13:21 -05:00
subs.js Add createdAt to territory header 2024-04-03 01:17:32 +02:00
users.js Item mention notifications (#1208) 2024-06-03 12:12:42 -05:00
wallet.js Show preimage of confirmed withdrawals (#1106) 2024-04-25 19:33:24 -05:00