1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-18 10:25:55 +01:00
Commit Graph

1968 Commits

Author SHA1 Message Date
Zankaria
0c074016e7 context.php: much better Dependency Injection implementation 2024-08-11 10:06:20 +02:00
Lorenzo Yario
d78f865645
Merge pull request #779 from Zankaria/ban-query-truncate
Fix new_ban failing due to the message body being too big
2024-08-03 23:16:11 -07:00
seisatsu
098edb9cd7 Add a spam filter that unshortens urls 2024-07-31 12:44:39 -05:00
Zankaria
4bc69be4bc bans.php: fix new_ban failing due to the message body being too big 2024-07-27 15:27:44 +02:00
Weav
fee67b6719
Merge branch 'dev' into hash-passwords 2024-06-20 13:21:05 +00:00
fowr
fff9b88c6d
hash poster passwords 2024-06-20 10:11:47 -03:00
Lorenzo Yario
809ab99c9b
allow images for markdown 2024-06-05 18:02:08 -07:00
Lorenzo Yario
878a67389a
Merge pull request #758 from Zankaria/refactor-ban-log
Refactor ban log
2024-05-22 23:15:30 -07:00
Zankaria
88a48befd4 pages.php: use link to create hardlinks instead of full file copy for thread moving 2024-05-23 00:05:43 +02:00
Zankaria
7e4dd5567b bans.php: always print modLog 2024-05-22 22:14:38 +02:00
Zankaria
8963ebfce9 bans.php: simplify modLog string 2024-05-22 22:14:08 +02:00
Lorenzo Yario
605f198d8c
fix bug with datetime 2024-05-16 22:51:20 -07:00
Lorenzo Yario
7899476323
Merge pull request #746 from Zankaria/secure-login-triple
Rework secure_login_only configuration option to allow secure default and header checking
2024-05-16 00:55:16 -07:00
Zankaria
d700aa0522 Rework secure_login_only configuration option to allow secure default and header checking 2024-05-11 16:02:15 +02:00
Zankaria
9f46f0fdd4 functions.php: do not fail fail_unlink if the file does not exist 2024-05-11 15:38:17 +02:00
fowr
ba2daa88e6 fix conversion of false to array 2024-05-11 15:38:17 +02:00
Lorenzo Yario
519dd27221
but we're using datetime 2024-05-11 05:03:35 -07:00
Lorenzo Yario
cc55563411
let's continue to use current date/time formatting 2024-05-11 04:58:59 -07:00
Lorenzo Yario
273722dc7e
set to false by default. this'll probably become true eventually though 2024-05-11 04:45:39 -07:00
Lorenzo Yario
091c0442e8
allow cloudflare and other proxies to still count as https 2024-05-11 04:42:45 -07:00
fowr
ffa5c018e7 functions.php: add missing global 2024-05-11 12:24:50 +02:00
fowr
1a59e663c6 anti-bot.php: fix implicit conversion from float 2024-05-11 12:21:59 +02:00
Zankaria
faa43cb8a6 image.php: do not delete moved images 2024-05-11 12:05:10 +02:00
Zankaria
dd224cea58 functions.php: handle null body in remove_modifiers 2024-05-11 11:48:01 +02:00
Zankaria
4c731ba241 auth.php: check if cookie exists 2024-05-11 00:51:02 +02:00
Zankaria
ed05049777 functions.php: fix null parameter 2024-05-11 00:51:02 +02:00
Lorenzo Yario
49d815c2ee
Merge pull request #742 from Zankaria/config-reenable-syslog
config.php: reenable syslog default
2024-05-10 15:41:18 -07:00
Zankaria
44fd0dfb82 config.php: reenable syslog default 2024-05-11 00:16:18 +02:00
Zankaria
b90d6f5680 Fix broken login 2024-05-11 00:04:20 +02:00
Lorenzo Yario
ad653af082
allow excluding searches from boards 2024-05-09 23:06:45 -07:00
Lorenzo Yario
34a3dcac24
Merge pull request #713 from Zankaria/update-template-datetime
Update template datetime
2024-05-09 22:47:52 -07:00
Lorenzo Yario
a7658fe3c2
allow tripcodes to be disabled 2024-05-03 15:54:09 -07:00
Lorenzo Yario
12bcc63753
Merge branch 'dev' into improve-auth 2024-05-03 14:00:50 -07:00
Zankaria
1b6d6f38f1 auth.php: add typing 2024-04-30 19:47:31 +02:00
Zankaria
da4842eb7b auth.php: disallow unencrypted logins by default 2024-04-30 19:45:15 +02:00
Zankaria
0c51d46cdf auth.php: check if the cookie is set before deletion 2024-04-30 19:45:15 +02:00
Zankaria
9db8444c3c auth.php: use secured names and directives for mod cookies 2024-04-30 19:44:11 +02:00
Zankaria
abdf82e1c8 auth.php: remove obsolete code 2024-04-30 19:44:11 +02:00
Zankaria
5a378dd605 config.php: reduce default login cookie expire timeout 2024-04-30 19:42:01 +02:00
Zankaria
f6960b8b3a functions.php: format and trim 2024-04-30 15:57:02 +02:00
Zankaria
7041cd13df functions: split off numeric functions 2024-04-30 15:56:59 +02:00
Zankaria
b7eed34b83 functions: split off time formatting functions 2024-04-30 15:56:53 +02:00
Zankaria
39ce0e7dfc auth.php: trim 2024-04-30 11:36:11 +02:00
Zankaria
ebbb5fce53 Move twig template cache 2024-04-26 14:03:57 +02:00
Lorenzo Yario
85471e007e
vichan likes to error on the ban appeals page if this isn't set this way 2024-04-19 12:03:49 -07:00
Zankaria
3de9fa24dd template.php install.php: handle cache directory being a symlink 2024-04-16 22:32:41 +02:00
Zankaria
efdf93e3dd template.php: trim 2024-04-16 22:32:41 +02:00
Zankaria
8389c399bd Context: shorter lazy initialization 2024-04-16 22:30:37 +02:00
Zankaria
a83bcf14a4 Context: simplify lazy initialization 2024-04-09 11:43:46 +02:00
Zankaria
f93dd1fae5 Context: extract dependency building from the container 2024-04-09 11:33:06 +02:00
Zankaria
55cb6bc400 context.php: add log driver 2024-04-04 12:44:37 +02:00
Zankaria
28395d55e5 Refactor the logging system 2024-04-04 12:44:37 +02:00
Lorenzo Yario
98650ec2e7
Merge pull request #677 from Zankaria/refactor-queue
Refactor queue
2024-04-03 12:17:50 -07:00
Zankaria
c91c58ed07 Fix: substitute deprecated string interning syntax 2024-04-03 19:18:41 +02:00
Zankaria
99133c90fa config.php: fix date time diplay documentation 2024-04-03 17:38:12 +02:00
Zankaria
4ffe91e384 templates: substitute deprecated functions 2024-04-03 17:33:53 +02:00
Zankaria
9a014e8557 template.php: fix deprecated string interning syntax 2024-04-03 17:33:48 +02:00
Zankaria
f47332cdff Allow queue push to fail gracefully 2024-04-03 14:34:43 +02:00
Zankaria
09dc44ec40 functions.php: trim 2024-04-03 14:34:42 +02:00
Zankaria
e61ed35aa0 Refactor queue.php 2024-04-03 14:33:51 +02:00
Zankaria
55034762b0 Format queue.php 2024-04-03 14:33:51 +02:00
Zankaria
760431606d Refactor lock.php 2024-04-03 14:33:51 +02:00
Zankaria
00b05099f3 Format lock.php 2024-04-03 14:33:51 +02:00
Zankaria
3016d69428 Share REST call code and separate components via dependency injection 2024-04-03 14:33:38 +02:00
Zankaria
03a875f663 Handle reporting non-existing posts. 2024-04-01 19:55:32 +02:00
Lorenzo Yario
95153233eb
Revert "Revert "Revert "Share REST call code and separate components via dependency injection""" 2024-03-30 22:46:35 -07:00
Lorenzo Yario
67475c2c2f
Revert "Revert "Share REST call code and separate components via dependency injection"" 2024-03-30 22:34:30 -07:00
Lorenzo Yario
f5328a436c
Revert "Share REST call code and separate components via dependency injection" 2024-03-30 22:24:20 -07:00
Lorenzo Yario
3d2f0b6a1b
Merge pull request #688 from Zankaria/add-dep-injection
Share REST call code and separate components via dependency injection
2024-03-30 22:15:44 -07:00
Lorenzo Yario
45f476084e
Merge pull request #693 from Zankaria/premade-ban-reasons
Add premade ban reasons
2024-03-30 22:15:20 -07:00
Zankaria
018da09ac5 Fix CaptchaQueries naming 2024-03-26 14:16:19 +01:00
Zankaria
3e3fa057d5 bans.php: rebuild themes only if bans are deleted 2024-03-22 10:59:22 +01:00
Zankaria
67b88ec78f bans.php: group deletions 2024-03-22 10:59:13 +01:00
Zankaria
a2eb3d9053 bans.php: trim 2024-03-22 10:57:10 +01:00
Zankaria
dc903017ca Add CaptchaQueries 2024-03-21 15:14:13 +01:00
Zankaria
c20b0ba6f0 Add context dependency container 2024-03-21 15:14:13 +01:00
Zankaria
3dc239e204 http-driver: refactor 2024-03-21 15:14:13 +01:00
Zankaria
65cebe9bd5 http-driver: add file size limit and timeout support 2024-03-21 15:14:13 +01:00
Zankaria
2a228e8ee4 Add http curl driver 2024-03-21 15:14:13 +01:00
Lorenzo Yario
0c3159673d
Merge pull request #692 from Zankaria/simple-antispam
Prettier simple-antispam documentation
2024-03-16 15:39:57 -07:00
Lorenzo Yario
3c23e01dab
Merge pull request #696 from Zankaria/ban-appeals-limits
Add maximum length of ban appeal
2024-03-15 09:48:25 -07:00
Zankaria
2a8b69fa77 Add maximum report length 2024-03-15 16:37:59 +01:00
vholmes
61cdca7207 Prevents reports with too many characters 2024-03-15 16:34:05 +01:00
Zankaria
d5109426d9 Prettier simple-antispam 2024-03-15 16:08:45 +01:00
discomrade
e80549a881 Enforce maximum length of ban appeal 2024-03-15 16:02:35 +01:00
discomrade
43973862dd Added Feature - Premade Ban Reasons
see 13ac9172e7
2024-03-14 15:55:49 +01:00
Lorenzo Yario
3ac86a074a
Merge pull request #687 from Zankaria/trim-functions
Trim the whitespace in functions.php
2024-03-14 06:12:42 -07:00
Lorenzo Yario
954bb08762
disable by default, like other captchas 2024-03-14 06:06:28 -07:00
Lorenzo Yario
28df28de26
add some more info about this as this is basically questycaptcha 2024-03-14 06:05:43 -07:00
Lorenzo Yario
e3ae4aee80
Merge pull request #689 from Zankaria/faster-delete
Speed up page builds on delete
2024-03-14 05:22:34 -07:00
Zankaria
e2d771239c Critically enhance the simple antispam mechanism 2024-03-14 12:50:19 +01:00
Your Name
6dabfa08bc Simple anti-spam mechanism 2024-03-14 12:50:19 +01:00
nonmakina
fff3e11c48 use more cache. Speeds up page builds (#72)
use more cache. Speeds up page builds.
Tested as much as reasonably possible. Works well.
cuts self delete from ~8 seconds to ~1 second. and mod delete from 10-14 seconds to ~4 seconds.
Co-authored-by: nonmakina <nonmakina@leftypol.org>
Co-committed-by: nonmakina <nonmakina@leftypol.org>
2024-03-14 12:28:02 +01:00
Zankaria
b25cffe12e functions.php: trim 2024-03-14 10:01:13 +01:00
Lorenzo Yario
0296301fff
use the current domain 2024-03-11 18:54:20 -07:00
Zankaria
2f88d0809f Remove APC support 2024-03-11 10:24:35 +01:00
Zankaria
0154e54f85 Remove xcache support 2024-03-11 10:24:35 +01:00
Zankaria
58134f8cde cache.php: trim 2024-03-11 10:24:35 +01:00
Zankaria
f683c72c39 config.php: trim 2024-03-11 10:24:30 +01:00
Lorenzo Yario
557b183d36
Merge pull request #675 from Zankaria/remove-manual-orient-2
Remove 'convert_manual_orient' functionality.
2024-03-11 00:00:58 -07:00