1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00
Commit Graph

665 Commits

Author SHA1 Message Date
Zankaria
b8c53fbbcd dice.php: extract email dice function from functions.php 2024-10-14 12:31:36 +02:00
Zankaria
23f3d15a52 extract create_pm_header 2024-10-06 10:41:32 +02:00
Lorenzo Yario
39876f3cc7
Merge pull request #795 from Zankaria/api-modern
Modernize (a bit) the Api class
2024-08-16 21:43:17 -07:00
fowr
4f68166870 api.php: using depedency injection instead of globals 2024-08-16 19:26:19 +02:00
Zankaria
b2df2ab2a5 theme.php: extract theme functions from functions.php 2024-08-16 18:24:26 +02:00
Zankaria
ede7591702 bans.php: refactor to expose the moratorium on ban deletion from the database.
Also fixes the 'purge_bans' configuration for non-cache deployments.
2024-08-11 12:04:12 +02:00
Zankaria
c057c6df29 functions.php: skip ban deletion on auto_maintenance disabled 2024-08-11 12:04:12 +02:00
Zankaria
e5bbdb9d28 functions.php: make automated antispam puring optional 2024-08-11 12:04:12 +02:00
Zankaria
cbaf19cb7a bans.php: make the purge configurable 2024-08-11 12:04:12 +02:00
Zankaria
75714505a0 config.php: add auto_maintenance configuration option 2024-08-11 12:04:10 +02:00
Zankaria
36476f6341 bans.php: split find implementations 2024-08-11 11:53:27 +02:00
Zankaria
00cc1f434d anti-bot.php: add comments to _create_antibot 2024-08-11 10:17:14 +02:00
Zankaria
ee20bf574a functions.php: format _create_antibot 2024-08-11 10:14:54 +02:00
seisatsu
098edb9cd7 Add a spam filter that unshortens urls 2024-07-31 12:44:39 -05: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
Zankaria
9f46f0fdd4 functions.php: do not fail fail_unlink if the file does not exist 2024-05-11 15:38:17 +02:00
fowr
ffa5c018e7 functions.php: add missing global 2024-05-11 12:24:50 +02:00
Zankaria
dd224cea58 functions.php: handle null body in remove_modifiers 2024-05-11 11:48:01 +02:00
Zankaria
ed05049777 functions.php: fix null parameter 2024-05-11 00:51:02 +02:00
Zankaria
f6960b8b3a functions.php: format and trim 2024-04-30 15:57:02 +02:00
Zankaria
b7eed34b83 functions: split off time formatting functions 2024-04-30 15:56:53 +02:00
Zankaria
c91c58ed07 Fix: substitute deprecated string interning syntax 2024-04-03 19:18:41 +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
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
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
Zankaria
dd5c25f99c Remove remote server support
The functionality was marked as "I'm not even sure if this code works anymore" 11 years ago...
2024-02-14 23:00:52 +01:00
Lorenzo Yario
ec515621eb
Revert "Initial break up of functions.php" 2024-02-04 05:53:06 -08:00
Zankaria
3baa68c7b6 Initial refactor of functions.php 2024-02-03 17:17:14 +01:00
RealAngeleno
1b14830dfd
drop-in replacement for rc4-40 2023-09-01 22:16:05 -07:00
RealAngeleno
997babeee0
add hourly thread limit (from npfchan) 2023-08-13 23:14:41 -07:00
RealAngeleno
4d3ca11b91
allow cyclical images to be set independently of stickies 2023-08-05 15:35:28 -07:00
RealAngeleno
fb8f1d04d0
Update functions.php 2023-08-02 18:04:49 -07:00
basedgentoo
8012cc5f05
Merge pull request #527 from discomrade/regex-open-bracket
Allow open parentheses before cite: "(>>1"
2023-04-23 22:13:18 -04:00
f89s
90bf50fa30 Fix combining character set, allow limit for combining characters 2023-03-28 19:01:12 +04:00
discomrade
5d31f3bab7
Add open parentheses to cite regex
Allows cite regex to match a post number after an opening parenthesis. "I like the comfy threads (>>1 and >>2) because they're comfy"
From d78254b41d
2023-01-12 10:16:15 +00:00
runit
4e5fecebd2 I didn't need to actually touch this. 2022-10-15 10:09:10 -04:00
runit
63b71bf1fc We're not Tinyboard anymore. We've been vichan for 8 years. We should reflect that.
Also use Github wiki so new enhancements can be reflected. It's better than linking to 10-year-old archived documentation.
I'll update the wiki eventually.
2022-10-15 10:09:10 -04:00
Fred Brennan
4c6a695a6f Use ENT_QUOTES when converting UTF-8 to HTML (#448)
Closes #448.
2022-09-15 14:46:05 -04:00
C Hatfield
ae2d91c534
Moved hardcoded html filepaths into config file for extensibility (#354)
Co-authored-by: chatfield <chatfield@creatuity.com>
Co-authored-by: Fred Brennan <copypaste@kittens.ph>
2022-08-29 10:50:45 -04:00
PVNFU-28
75236d6ae5 Update functions.php
current regex consumes the space after a post quote, instead of merely checking that it's there. As a result textually consecutive post quotes, which the source calls cites, cannot be separated by a single space. This fixes that
2022-08-20 12:20:53 -04:00
discomrade
77bab66293
Fix multiple issues in anti bump flood
- saged posts aren't ignored when finding last bump
- bumplocked thread with one reply, delete the reply and no post matches the query
- bumplocked threads should be ignored
2022-01-22 03:31:52 +00:00
h00j
281dccb690 fix undefined index in cloak_mask/uncloak_mask 2021-04-01 22:30:22 +02:00
h00j
908b843854 move antibot functions 2021-02-13 21:14:06 +01:00
h00j
599fee5e21 use composer 2021-02-13 19:24:03 +01:00
h00j
bce71c1f98 ip cloaking 2021-02-13 14:11:41 +01:00