Commit Graph

25 Commits (e105035272553ddc6bd160fd200563312139175d)

Author SHA1 Message Date
Aevann e105035272 remove country club system and replace it with a 3 tier thing: (#41)
- /h/masterbaiters: 1 TS - for gayops

- /h/countryclub: 1000 TS - for anything requiring secrecy and doesnt need critical mass - have to make it a rule that u cant post gayops in /h/countryclub

- /h/chudrama: 5000 TS - for chad+stud posts

EDIT: i removed the /h/masterbaiters gate, but u can bring it back if u want
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Reviewed-on: #41
Co-authored-by: Aevann <aevann@noreply.fsdfsd.net>
Co-committed-by: Aevann <aevann@noreply.fsdfsd.net>
2022-12-04 18:39:06 +00:00
Aevann1 c0676e198c convert "var" to "let" and "const" 2022-12-04 17:40:32 +02:00
Aevann1 0baa32e6eb fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3107571?context=8#context 2022-11-20 18:55:26 +02:00
Snakes a9eb7bcd57
Fix submission repost link escaping. 2022-11-15 19:28:21 -05:00
justcool393 994ca902ca uploads: fix paste to upload on firefox 2022-11-13 08:16:42 -06:00
justcool393 9be721dcf4 send xhr header so errors don't give back HTML pages 2022-11-11 23:46:21 -06:00
Snakes 803ce06712
Sanitize more intermediate values.
Frankly, this is almost entirely speculative. I don't see any viable
exploits through either of these codepaths. But automated tooling
doesn't see the implicit constraints on these values, so might as well
do more sanitization.
2022-11-10 23:17:25 -05:00
Aevann1 170959c071 untick "notify followers" checkbox when "ghost thread" checkbox is ticked 2022-11-09 21:26:38 +02:00
Aevann1 a95d378cf6 perserve status of ALL checkboxes in /submit 2022-11-09 21:25:52 +02:00
Aevann1 8e3cf6774b Revert "stop removing the last 2 characters of filenames (no clue why this is a thing)"
This reverts commit 530233796c.
2022-11-08 00:21:03 +02:00
Aevann1 530233796c stop removing the last 2 characters of filenames (no clue why this is a thing) 2022-11-08 00:17:11 +02:00
Aevann1 d76fe63c7f constantify image extensions and fix imgur .gif bug 2022-11-05 23:01:23 +02:00
Aevann1 ae3831efb5 another small js fix 2022-10-25 00:02:44 +02:00
Aevann1 9dd9329c32 small js fix 2022-10-25 00:00:19 +02:00
justcool393 2dd74d3acd don't constantly check for reposts when it's obvious there can't be one
we currently spam the /is_repost api on every single character change in the URL box even though there is no way these URLs would ever be submitted to the site

introducing a frankly conservative limit to where we start actually pinging both the api and (on the backend) the database for reposts may help in some cases

the current constant was chosen by taking the length of "http://" and adding 2 to it
2022-10-14 03:27:45 -07:00
Aevann1 55eabc0871 give user an error in the UI if they try to submit more than 4 files 2022-10-11 19:13:50 +02:00
Aevann1 f54791cc4c remove categories 2022-09-19 20:04:30 +02:00
Aevann1 0c32d56cd6 casino + style shit 2022-09-05 01:15:37 +02:00
Aevann1 26bbc8b69a perserve the first 4 checkboxes in /submit too 2022-08-15 08:42:59 +02:00
Aevann1 e73fa11696 fix submit.js 2022-08-14 05:20:43 +02:00
Aevann1 47b6139f7c fix submit.js 2022-08-14 05:18:52 +02:00
Aevann1 f6729aab33 fix https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2487028?context=8#context 2022-08-11 19:18:53 +02:00
Snakes 1411018f8d Add post categories.
Implemented for LGB but can likely be used for WPD and other future
sites. Similar to a reddit post flair. Provides:
  - Admin panel for Category management.
  - Category selection on post submission.
  - 'Recategorize' post action.
2022-08-07 02:57:30 -04:00
Aevann1 a4444c9402 make form a const 2022-07-23 10:57:53 +02:00
Aevann1 664029a9fb sneed 2022-07-16 21:00:02 +00:00