Will Anderson e121038382 fix(gallery): proper auth-gated voting with persistence, undo, and change
Replaces the broken counter-bump RPC with a per-user share_votes table
(PK share_id+user_id, RLS-enforced ownership). One vote per user per
card, change direction or undo any time. Auth required for write;
read is public. share_cards.upvotes/downvotes/score stay in sync via
recalc trigger. New endpoints: POST /api/vote (auth-gated), GET
/api/vote-state/:id (auth-aware).
2026-05-02 12:14:31 -05:00
S
Description
Neuron marketing site - El-native server
9.9 MiB
Languages
Emacs Lisp 47.1%
C 34.7%
HTML 7.5%
TypeScript 5.4%
JavaScript 2.4%
Other 2.9%