Commit graph

5190 commits

Author SHA1 Message Date
Zankaria
31086b05d9 bans.php: limit post body length to 12 KBs 2024-08-19 22:54:05 +02:00
Zankaria
a6040e704b docker: cache composer dependencies 2024-08-18 21:14:39 +02:00
Zankaria
ee2ddeb29d name.html: format 2024-08-18 21:14:10 +02:00
Zankaria
aec814266c pages.php: HOTFIX add copy fallback in case of already existing file when moving thread. 2024-08-18 01:00:32 +02:00
Zankaria
d8c5c600a8 Add hcaptcha support (#166)
Co-authored-by: RealAngeleno <angeleno@screamer.wiki>
Reviewed-on: https://git.leftypol.org/leftypol/leftypol/pulls/166
Co-authored-by: Zankaria <zankaria.auxa@skiff.com>
Co-committed-by: Zankaria <zankaria.auxa@skiff.com>
2024-08-10 19:58:20 +00:00
25089f5cbb main.js: HOTFIX double captcha init 2024-08-10 01:05:36 +02:00
eb6649b260 main.js: fix captcha breaks if loaded before main.js #164 (#165)
Reviewed-on: https://git.leftypol.org/leftypol/leftypol/pulls/165
2024-08-09 22:53:25 +00:00
17f92344e9 main.js: handle undefined styleName in style chooser 2024-08-07 22:49:04 +02:00
14272c87e9 main.js: do no change to undefined styles 2024-08-07 22:44:17 +02:00
ed330a009c Merge pull request 'Rework the captcha to correctly reset after a post' (#158) from captcha-rework into config
Reviewed-on: https://git.leftypol.org/leftypol/leftypol/pulls/158
2024-08-07 19:32:23 +00:00
057addafa8 main.js: fix reset wiping the captcha token from the form before it was sent 2024-08-07 00:31:57 +02:00
b83be67b55 main.js: fix template 2024-08-07 00:31:57 +02:00
8223dcfbad main.js: rename onready to camelCase 2024-08-07 00:31:57 +02:00
d7896b9c02 main.js: rename init_stylechooser to camelCase 2024-08-07 00:31:57 +02:00
a260bcb6d4 main.js: format 2024-08-07 00:31:57 +02:00
d8ea4c49ad main.js: rename dopost to camelCase 2024-08-07 00:31:57 +02:00
b77685f8f4 main.js: format getCookie 2024-08-07 00:31:57 +02:00
30d0b3bfe4 main.js: extract captcha reset 2024-08-07 00:31:57 +02:00
1eaa0f7631 main.js: abstract captcha renderer 2024-08-07 00:31:57 +02:00
1b3b8cb9b6 main.js: refactor captcha parameters to be managed in JS 2024-08-07 00:31:55 +02:00
584fac7caa main.js: rework dynamic captcha rendering to correctly reset when a user posts 2024-08-07 00:16:03 +02:00
95d5ec6cc6 captcha_script.html: refactor captcha script inclusion in a separate template 2024-08-07 00:16:00 +02:00
be69385fef main.js: use camelCase for captcha javascript 2024-08-03 23:57:25 +02:00
7b98295dcf main.js: fix captcha selection check 2024-08-03 23:45:53 +02:00
fb48c74565 main.js: add dynamic turnstile support 2024-07-29 21:35:49 +02:00
6097849ea2 main.js: unfuck dynamic captcha support 2024-07-29 21:24:14 +02:00
8f98665a1c post.php: make dynamic captcha less prone to misuse 2024-07-29 20:48:22 +02:00
40475158eb post.php: use the dynamic_captcha config value to pick from which IP to check for captcha reponsens 2024-07-29 20:46:30 +02:00
fccd0a16dd quick-reply.js: move recaptcha rendering to function 2024-07-28 00:53:33 +02:00
4f61026842 templates: inject turnslide js 2024-07-28 00:53:33 +02:00
f3c45073cb post_form.html: add data-action parameter to turnstile captcha 2024-07-28 00:53:33 +02:00
67de8df246 post.php: add turnstile server side checks 2024-07-28 00:53:33 +02:00
12f0fd1cb4 config.php: add turnstile field options 2024-07-28 00:53:33 +02:00
43ea24ea20 config.php: add turnstile's form field to the whitelist 2024-07-28 00:53:33 +02:00
483d553fc0 Add dynamic captcha support 2024-07-28 00:53:26 +02:00
81f5c70681 quick-reply.js: format 2024-07-28 00:52:49 +02:00
50bb090952 docker: shorter compose instance var name 2024-07-28 00:52:26 +02:00
3b8c6ae9fd bans.php: fix new_ban failing due to the message body being too big 2024-07-27 15:21:06 +02:00
a0049aff28 bans.php: fix typo in findSingleNoGc query 2024-07-23 19:49:04 +02:00
dfef661910 bans.php: fix forgot to extract the mask 2024-07-15 21:30:14 +02:00
60241a474c bans.php: FIX every IP matching to any ban that was going to expire eventually 2024-07-14 19:23:14 +02:00
024a6fe20b banned.html: add missing space 2024-07-14 19:17:55 +02:00
88eb7d68a7 bans.php: do not deserialize post that does not exist 2024-07-14 19:13:51 +02:00
386f9998e1 maintenance.php: fix typo 2024-07-14 18:48:02 +02:00
61c35ebe50 maintenance.php: log deleted entries count 2024-07-14 18:40:56 +02:00
4599f8bc32 maintenance.php: reduce modlog logs 2024-07-14 18:22:51 +02:00
5fd319d112 cli.php: include anti-bot.php 2024-07-14 18:22:51 +02:00
d74ba41198 maintenance.php: fix logging 2024-07-14 18:22:51 +02:00
6f8ada0f42 config.php: purge_bans configuration into the proper section 2024-07-14 18:22:51 +02:00
d69eebb1d3 bans.php: refactor to expose the moratorium on ban deletion from the database.
Also fixes the 'purge_bans' configuration for non-cache deployments.
2024-07-14 18:22:51 +02:00