stacker.news/api/typeDefs
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
..
admin.js Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"" 2023-07-23 10:08:43 -05:00
blockHeight.js Add block height to price carousel (#484) 2023-09-12 10:56:02 -05:00
chainFee.js chain fee should be a float 2023-12-20 19:12:43 -06:00
growth.js Custom date selector for more pages (#567) 2023-11-08 18:15:36 -06:00
image.js Image uploads (#576) 2023-11-06 14:53:33 -06:00
index.js Add chain fees to price carousel (#658) 2023-12-20 16:06:22 -06:00
invite.js upgrade to prisma 4 2023-07-26 19:18:42 -05:00
item.js Make Polls Anonymous (#1197) 2024-06-03 13:56:43 -05:00
itemForward.js multiple forwards on a post (#403) 2023-08-23 17:44:17 -05:00
lnurl.js remove slashtags temporarily 2023-08-16 19:49:00 -05:00
message.js Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"" 2023-07-23 10:08:43 -05:00
notifications.js Item mention notifications (#1208) 2024-06-03 12:12:42 -05:00
price.js Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"" 2023-07-23 10:08:43 -05:00
referrals.js Custom date selector for more pages (#567) 2023-11-08 18:15:36 -06:00
rewards.js Monthly rewards (#890) 2024-03-01 10:28:55 -06:00
sub.js Purchase archived territories (#897) 2024-03-19 17:23:59 -05:00
upload.js Image uploads (#576) 2023-11-06 14:53:33 -06:00
user.js Item mention notifications (#1208) 2024-06-03 12:12:42 -05:00
wallet.js Allow deletion of wallet logs (#1101) 2024-05-03 14:14:33 -05:00