37 Commits

Author SHA1 Message Date
68721845b0
Make middleware hack again 2023-10-30 17:01:22 -04:00
5272c777a8
Create get all appeal bans endpoint 2023-10-30 17:01:08 -04:00
e974f0f9d6
Make appeal ban deletion endpoint 2023-10-30 12:21:35 -04:00
aaf8c880d8
Make appeal ban endpoint use path param 2023-10-30 12:16:59 -04:00
9212e3e454
Fix automatic unbans 2023-10-21 23:37:56 -04:00
4a62ce5c05
Include open property on appeals 2023-10-20 12:35:51 -04:00
53b05e2bdd
Delete FCM token from KV on appeal action 2023-10-19 16:51:20 -04:00
161862712c
Send push notifs on appeal action 2023-10-19 16:51:16 -04:00
ffe70100ac
Add appeal submit status endpoint 2023-10-19 16:51:16 -04:00
1a35cca6cf
Set approved field on appeal action 2023-10-19 16:51:15 -04:00
b5a92db954
Move most email sending to common email function 2023-10-19 16:51:00 -04:00
dd2d9f2672
Greatly reduce repeated code 2023-10-19 16:50:48 -04:00
3ec0a30ed7
Apparently .run() does not return results 2023-10-19 16:50:43 -04:00
cb5aea2832
Parse appeal object before assigning it to data 2023-10-19 16:50:41 -04:00
056c6b84f3
Fix email sending not working 2023-10-19 16:50:41 -04:00
eb550a7c36
Move appeal bans entirely to D1 2023-10-19 16:50:41 -04:00
736543c374
Make appeal action endpoints un-useless 2023-10-19 16:50:40 -04:00
962509aff2
Fix creation time property 2023-10-19 16:50:40 -04:00
c848453b1b
Actually insert appeals into D1 2023-10-19 16:50:37 -04:00
026d1ca06d
New formatting 2023-10-19 16:50:21 -04:00
63b6392b13
Remove discriminators from discord appeals 2023-10-19 16:50:17 -04:00
812ebd913e
Use correct property names in appeal submission endpoint 2023-10-19 16:49:54 -04:00
188275aa7b
Set id property in keys 2023-10-19 16:49:27 -04:00
7b73d646a5
Fix middleware routing issue 2023-10-19 16:49:21 -04:00
95bda996bb
Remove stray console.log 2023-10-19 16:49:20 -04:00
3e01d3391a
Fix bad permissions check in toggle endpoint 2023-10-19 16:49:18 -04:00
8d7e9bd93d
Don't rely on metadata for appeals 2023-10-19 16:49:18 -04:00
3d5b830827
Remove excess line breaks 2023-10-19 16:49:18 -04:00
71b7104502
Don't use metadata for submission data 2023-10-19 16:49:17 -04:00
a3eca56fec
Create appeal accept and deny endpoints 2023-10-19 16:49:14 -04:00
75c38e9cc5
Move userid validator to ban endpoint 2023-10-19 16:49:14 -04:00
debb8d9209
Create appeal ban endpoint 2023-10-19 16:49:13 -04:00
75005da3b3
Finish appeal[id] middleware 2023-10-19 16:49:13 -04:00
b124b6c631
Create per-id appeal middleware 2023-10-19 16:49:12 -04:00
cce71c9093
Create login check middleware for all appeals api routes 2023-10-19 16:49:12 -04:00
9e44a7e0a1
Add actual permission check to appeal toggle endpoint 2023-10-19 16:49:11 -04:00
d731041378
Initial commit 2023-10-19 16:49:05 -04:00