Commit Graph

22 Commits

Author SHA1 Message Date
mini-bomba
899000309f make eslint scream about promises, then fix all lints
also rewrite a bunch of test suites from using done callbacks to using
async functions - it's way too easy to forget about a .catch() clause
2025-09-11 01:14:40 +02:00
Michael C
15f19df8a4 clean up shadowban code, exclude long running categories query when possible 2023-12-21 18:37:24 -05:00
Ajay
b6f29b8b6d Fix shadow ban test 2023-07-23 23:35:50 -04:00
Ajay
8b418c8851 Add hiding dearrow submissions in ban code 2023-07-05 01:23:48 -04:00
Michael C
8495a9d6c0 fix unban query hitting limit, use number as type 2023-02-25 00:04:15 -05:00
Michael C
c586c9a7e7 add etag tests
- add shadowban self test
- add init and -it to docker runs
2023-02-20 15:56:08 -05:00
Ajay
d5c544f1ee Allow auto banning ips 2023-01-28 14:00:12 -05:00
Ajay
5426ae826e Add IP banning 2023-01-28 13:09:04 -05:00
Michael C
74c0ba37e2 remove debug statements, fix shadowBanUser tests 2023-01-28 02:54:01 -05:00
Michael C
a64b8f99b7 use shared parseParams helper 2023-01-28 02:40:09 -05:00
Michael C
d163b1d436 shadowban tests 2022-09-30 22:58:20 -04:00
Michael C
4e50f0ab4b remaining tests 2021-09-22 23:18:31 -04:00
Michael C
a028eaa41a object-curly-spacing 2021-09-22 18:52:35 -04:00
Michael C
5758f6512d move utils to seperate files and folder, update imports 2021-09-21 02:02:17 -04:00
Michael C
e7d55d1e1b everything after postClearCache 2021-09-16 23:05:16 -04:00
Michael C
265a01dcde re-shadowban user
if user is already shadowbanned but unhideOldSubmissions is true, sets all submissions to hidden. If not true, then return 409 duplicate
2021-08-25 01:56:34 -04:00
Michael C
8b3ffe5d0d fix eslint for tests 2021-07-12 02:43:46 -04:00
Michael C
178ed1e5af replace if tests with assert 2021-07-08 00:39:57 -04:00
Michael C
d89b26b77d fix eslint-errors 2021-07-04 01:36:03 -04:00
Nanobyte
a005a961f9 Fix test cases 2021-06-22 00:59:56 +02:00
Ajay Ramachandran
48d88614fb Move shadow ban list to public db
Warning: Migration is not automatic
2021-06-20 13:41:35 -04:00
Ajay Ramachandran
e06eb96fa7 Add ability to ban specific category 2021-06-14 16:23:39 -04:00