Commit Graph

87 Commits

Author SHA1 Message Date
5e6ff38f47 Feat: Fetch and return user's posts for profile 2025-10-03 07:55:46 -07:00
034aaf64c7 Feat: Add user profile pages and client-side routing 2025-10-03 07:47:30 -07:00
7435c6713c Feat: Add endpoint for user profiles 2025-10-03 07:47:28 -07:00
49a94f5775 Feat: Add server config check for API key 2025-10-02 15:32:38 -07:00
074149d38a Refactor: Add debug log for API key 2025-10-02 15:31:20 -07:00
4f0e84e9aa Feat: Add Gemini moderation for new posts 2025-10-02 15:02:32 -07:00
02f94fb09d Feat: Add Gemini moderation for new comments 2025-10-02 15:02:28 -07:00
0994c7c6e4 Feat: Add Turnstile and simplify login flow 2025-10-02 14:41:28 -07:00
b2bd80943e Feat: Add Turnstile verification to forms 2025-10-02 14:41:25 -07:00
954a577348 Refactor: Add Turnstile and login on signup 2025-10-02 14:41:22 -07:00
114aa13819 Feat: Add Turnstile verification to forms 2025-10-02 14:41:17 -07:00
6c18e5b674 Feat: Add Turnstile verification to forms 2025-10-02 14:41:14 -07:00
33e7cf09aa Feat: Add Turnstile verification to forms 2025-10-02 14:41:07 -07:00
094c717f5c Feat: Add ban check to user authentication 2025-10-02 13:46:19 -07:00
21df01d81b Feat: Add ban check and expose user_id for mods 2025-10-02 13:46:16 -07:00
3d082d0c54 Feat: Add ban check and expose user_id for mods 2025-10-02 13:46:11 -07:00
28c4d8806b Feat: Add moderation endpoint for delete and ban 2025-10-02 13:46:08 -07:00
6490ca0d93 Feat: Clear role cookie on logout 2025-10-02 13:46:04 -07:00
c34da04919 Feat: Add user role to auth cookie 2025-10-02 13:46:00 -07:00
aea1fedd22 Feat: Add ban check to user authentication 2025-10-02 13:45:56 -07:00
8284a46bec Fix: Add CORS headers to vote API 2025-10-02 12:43:47 -07:00
0b48f82ac0 Fix: Add CORS headers to comments API 2025-10-02 12:43:44 -07:00
6b326a5a7b Fix: Add CORS headers to post detail API 2025-10-02 12:43:41 -07:00
292b66832e Fix: Add CORS headers to posts API 2025-10-02 12:43:38 -07:00
da3f9806f4 Feat: Add vote POST endpoint 2025-10-02 12:37:03 -07:00
59a6d8faea Feat: Add comments POST endpoint 2025-10-02 12:37:00 -07:00
127426ae98 Feat: Add single post GET endpoint 2025-10-02 12:36:57 -07:00
5e9e75213f Feat: Add posts API with GET/POST 2025-10-02 12:36:54 -07:00
ad7138afd8 Refactor: Enable CORS for user auth check 2025-10-02 12:12:41 -07:00
d68e62e742 Delete: Replace with server-side function 2025-10-02 12:00:07 -07:00
3082970ced Fix: Use robust JSON helper for header handling 2025-10-02 11:54:35 -07:00
daa6ec7681 Fix: Use robust JSON helper for header handling 2025-10-02 11:54:33 -07:00
33c759cec7 Fix: Use robust JSON helper for header handling 2025-10-02 11:54:25 -07:00
74b9f67b1a Fix: Correctly set multiple cookies using Headers object 2025-10-02 11:54:22 -07:00
935c297e71 Fix: Use robust JSON helper for header handling 2025-10-02 11:54:20 -07:00
3a289190ae Feat: Add /cookie page for debugging 2025-10-02 11:50:22 -07:00
683582ea8c Fix: Add missing auth-params endpoint for login 2025-10-02 11:44:49 -07:00
acc739ddb7 Feat: Display user role when logged in on main page 2025-10-02 11:39:43 -07:00
8d54c79545 Feat: Add 'mod' role and set_role API action 2025-10-02 11:29:33 -07:00
88d8710134 Feat: Add user role management UI 2025-10-02 11:29:27 -07:00
223ff68f58 Delete: Remove unused auth-params endpoint 2025-10-02 11:16:00 -07:00
6540ef33ec Feat: Verify user from pass_hash in cookie 2025-10-02 11:15:18 -07:00
1a85690bdd Feat: Clear auth cookies on logout 2025-10-02 11:15:16 -07:00
59498ccb1e Feat: Set auth cookies with username and pass_hash 2025-10-02 11:15:14 -07:00
301364400a Refactor: Revert to pass_hash auth, remove sessions 2025-10-02 11:15:11 -07:00
4513b47e95 Feat: Create signup page 2025-10-02 11:08:03 -07:00
3514cb8be1 Feat: Create login page 2025-10-02 11:08:00 -07:00
c016b74e2b Feat: Display user status and logout button 2025-10-02 11:07:56 -07:00
48cda62678 Feat: Endpoint to get current user from session 2025-10-02 11:07:54 -07:00
6c2b224326 Feat: Signup endpoint for user registration 2025-10-02 11:07:51 -07:00