Commit Graph

72 Commits

Author SHA1 Message Date
mini-bomba
bce5385864 shortcircuit the new user check for banned users 2025-05-26 16:41:55 +02:00
mini-bomba
f71c4ceba9 don't send dearrow webhooks for banned users 2025-05-25 22:46:23 +02:00
Ajay
339ba127eb Fix log 2025-04-28 02:59:15 -04:00
Ajay
da393da9e9 Fix log 2025-04-28 02:56:36 -04:00
mini-bomba
9bc4bf8c7b Add request validator rule names 2025-04-26 02:10:33 +02:00
Ajay
cbc38c5ac8 Add another logging webhook 2025-04-25 17:43:01 -04:00
mini-bomba
f44d3cd92c rephrase old rejection logs 2025-04-25 21:52:39 +02:00
mini-bomba
4db4e9458e hook up extra functions to the request validator 2025-04-25 21:52:39 +02:00
mini-bomba
f7e5394a18 create a request validator engine 2025-04-25 21:11:30 +02:00
Ajay
920d288f0b Add title to webhook 2025-04-25 13:00:34 -04:00
Ajay
0d005c23bf Add another validity filter 2025-04-25 12:55:44 -04:00
Ajay
cfd61dc8dd Validity check 2025-04-21 19:26:42 -04:00
Ajay
039fb3ac7a More logs 2025-04-21 12:39:14 -04:00
Ajay
fccebfa487 Fixed webhook again 2025-04-21 11:27:16 -04:00
Ajay
6130ac8150 Change color for dearrow webhook 2025-04-21 11:20:08 -04:00
Ajay
7e681d2cd5 Fix webhook newlines 2025-04-21 11:15:30 -04:00
Ajay
b849328fae More logging 2025-04-21 10:53:49 -04:00
Ajay
3d596f4528 Save user agent for dearrow 2025-04-17 01:05:34 -04:00
Ajay
69cb33aad0 Add logs 2025-04-08 13:23:24 -04:00
Ajay
34a6a83e44 Change dearrow permission requirements 2025-04-07 19:28:52 -04:00
Ajay
0967373cb2 Rename func 2025-04-07 00:57:48 -04:00
Ajay
b7794b57d0 Fix can vote checks 2025-04-07 00:57:08 -04:00
Ajay
550339db41 Add permission check in more places 2025-04-07 00:36:01 -04:00
Ajay
4abf57b0ce Save casual mode status in db 2025-02-06 02:51:13 -05:00
Ajay Ramachandran
7ef6452eb5 Double quote 2024-11-14 19:49:25 -05:00
mini-bomba
9c01b711a5 Send a different message for VIP downvotes on locked titles 2024-11-14 22:30:14 +01:00
Ajay
b2981fe782 Don't allow multiple downvotes on one submission 2024-11-10 15:21:40 -05:00
Ajay
93f7161724 Only uploaded warned info for upvotes 2024-10-27 02:17:34 -04:00
Ajay
e9c0c44528 Add new webhook for was warned 2024-10-18 03:08:24 -04:00
Ajay
5fd6b5eb8b Fix canSubmitOriginal query on postgres 2024-09-01 19:29:08 -04:00
Ajay
258749ac31 Add more strict requirements for voting for original thumbnails 2024-09-01 18:56:29 -04:00
Ajay
803fc18554 Verify old submissions right after someone votes on it 2024-08-16 00:36:42 -04:00
Ajay
59373cf346 Fix rejected server-side rendered ads issue not rejecting 2024-08-14 23:42:47 -04:00
mini-bomba
380ec8d0ca Reformat SQL code in postBranding.ts webhook code 2024-08-03 22:01:46 +02:00
mini-bomba
72086b0195 Send webhook messages when a locked title is downvoted
also take downvotes & verification into consideration when comparing
titles in webhook code
2024-08-03 21:56:31 +02:00
mini-bomba
61dcfeb69f Don't send to #dearrow-locked-titles when downvoting unlocked title
voteType passed to sendWebhooks() function to avoid confusion in the
future should someone forget about the if statement
2024-08-03 21:39:21 +02:00
Ajay
738f863581 Don't send server-side render error for title submissions 2024-06-25 14:36:05 +05:30
Ajay
ee9ed6af1f Add server-side ads check for dearrow submissions 2024-06-12 11:57:59 +05:30
Ajay
b2f7e1b39b Fix locked check for thumbnail downvotes 2024-04-21 23:13:10 -04:00
Ajay
47c109f012 Fix act as vip unlocking segments 2024-03-21 19:35:13 -04:00
Ajay
a921085da6 Fix vip downvotes unlocking 2024-03-21 19:28:05 -04:00
Ajay
d5ebd8ec1a Improve self downvoting for dearrow 2024-03-20 13:47:23 -04:00
Ajay
bc1ca098e7 Fix bug causing people to accidentally super downvote 2024-03-17 13:20:23 -04:00
Ajay
f3fffa56c9 Don't allow downvoting locked segments 2024-02-08 15:47:25 -05:00
Ajay
59d9ed390f Fix titles and thumbnails being unlocked 2024-01-28 22:05:04 -05:00
Ajay
2c9079f565 No more verification through sb submissions 2024-01-21 19:46:16 -05:00
Ajay
b04e0dcd97 DeArrow downvotes 2024-01-03 01:13:35 -05:00
Ajay
33dad0a5e4 Add option to submit without locking
Also fixes voting for an existing thumbnail not unlocking other thumbnails
2024-01-02 19:12:55 -05:00
Ajay
3708d293dc Add warning when locked title probably outdated 2023-10-27 00:39:36 -04:00
Ajay
d08c423c6a Verify old submissions when adding dearrow feature 2023-09-06 10:53:14 -04:00