32
Who have logs of how users vote?
(sh.itjust.works)
A loosely moderated place to ask open-ended questions
If your post meets the following criteria, it's welcome here!
Looking for support?
Looking for a community?
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
~~We do not. Who voted on what is not stored at all. There’s not a database table for it nor is it logged in the logs. ~~
I am apparently too sick to be commenting on here. Comment likes are stored in the
comment_like
table (I was looking forvote
for some reaason...).This is absolutely not true. I just verified in my database that I can see how everyone voted on your comment. I can see that @Bishma@discuss.tchncs.de and @snowe@programming.dev (you) upvoted this comment, and that @dandroid@dandroid.app (me) downvoted this comment.
Edit: more people voted since my comment, and I can see all them, but I don't want to put those people on blast. I wrote a very short SQL query to get me this information for any comment id. It took about 3 minutes with zero previous knowledge of the lemmy database.
which table? Because I sure don't see that in the programming.dev db.
edit: nevermind, it's the comment_like table. I'll update my other comment with a retraction.
If nothing is stored, how are users prevented from voting multiple times?
It is stored, obv, but where? Where my likes come from when I see the same post?
It is stored. I can see everyone that upvoted and downvoted your comment by looking into my database right now.
It has to be, actually. Otherwise you could easily use the API to keep upvoting the same post or comment over and over.
It also needs to show me how I voted in the UI. It's stored somewhere.
@Bishma I am on kbin. If you upvote my comment I can go into 'activity' and get a username list of everyone, from any instance, that upvoted me. The data is obviously there.
Happens to the best of us lol.
What DBA program is that? It looks sexy clean 😍
DataGrip. best database tool on the planet. JetBrains really does make the best stuff.