1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-26 10:36:23 -07:00
Commit graph

192 commits

Author SHA1 Message Date
Eggbertx
e27d020d54 Implement lockdown mode, re-add message length checking 2025-03-07 23:23:26 -08:00
Eggbertx
3b12039f38 Add warning event to gcutil.LogRequest, improve error messages 2025-03-07 23:14:27 -08:00
Eggbertx
82099a76a7 Use CookieMaxAge when making a post 2025-03-03 20:58:05 -08:00
Eggbertx
1df4fb2efc Add board cooldowns doc comments, clean up geoip comments, and (almost) finish implementing gochan-gendoc 2025-03-02 14:48:12 -08:00
Eggbertx
0ec52bfdf1 Improve dice roll parsing 2025-02-19 17:10:57 -08:00
Eggbertx
0244811a7f Fix more deepsource issues 2025-02-18 20:33:33 -08:00
Eggbertx
74f9e415b4 Fix deepsource issues 2025-02-18 19:50:41 -08:00
Eggbertx
5a7695e98f Fixed referer checking, added more testing for server and serverutil packages 2025-02-10 21:41:21 -08:00
Eggbertx
e65d363a84 Implement dice rolling 2025-02-09 17:38:15 -08:00
Eggbertx
d5ac9bff11 Refactor, replace use of interface{} with any, fix register_handler args not being usd 2025-02-09 15:54:33 -08:00
Eggbertx
5bc47e003d Add function to lua for setting custom bbcode tags 2025-02-09 15:32:57 -08:00
Eggbertx
30c1c1c037 Rename all preload.go to lua.go and preload_test.go to lua_test.go 2025-02-09 12:47:37 -08:00
Eggbertx
f1a0e123f6 Remove unused parameters in message formatter init function 2025-02-07 23:01:20 -08:00
Eggbertx
5d98639daa Add hide block bbcode 2025-02-07 16:26:35 -08:00
Eggbertx
a31a001764 Add spoiler bbcode tag 2025-02-07 16:14:04 -08:00
Eggbertx
1463bbaa63 Update post handler, use EnableCyclicThreads instead of CyclicThreadNumPosts for validation 2025-01-19 12:27:24 -08:00
Eggbertx
09c059edd2 Change naming convention from cyclical to cyclic, as the latter is more acurate 2025-01-19 11:58:18 -08:00
Eggbertx
0b175ef2e5 Fully implement cyclical threads 2025-01-12 16:26:49 -08:00
Eggbertx
d0241f3a09 Prune posts in cyclical threads 2025-01-12 14:52:06 -08:00
Eggbertx
b966604d1d Avoid using Select * in SQL queries, normalize some view columns 2025-01-12 14:01:36 -08:00
Eggbertx
442319e77a Use fmt.Errorf and %w for unwrappable errors 2025-01-10 17:33:19 -08:00
Eggbertx
7c417e6b7c Fix bug with videos getting tripped by the image fingerprint matcher 2024-11-23 11:19:47 -08:00
Eggbertx
232107389c Fix file path for fingerprinting video thumbnails 2024-11-21 10:54:20 -08:00
Eggbertx
1f7e75417e Update versions for v4 release 2024-10-13 23:18:29 -07:00
Eggbertx
f1a5acc9e4 Add ability to make stickied, locked, and cyclical threads to backend code 2024-09-08 15:46:09 -07:00
Eggbertx
9eda27d38b Clean up MakePost 2024-09-07 23:42:22 -07:00
Eggbertx
a9e6652986 Remove excess println call 2024-09-07 21:03:07 -07:00
Eggbertx
dcc6f5cd4e Apply filters and wordfilters to post editing 2024-09-07 21:02:11 -07:00
Eggbertx
3f740d1edc Handle pre-upload filtering 2024-09-07 18:39:36 -07:00
Eggbertx
bfbca50f81 Make handle if any updateable from the filter page 2024-09-07 14:36:47 -07:00
Eggbertx
9875b011df Re-add incoming-upload event trigger 2024-09-07 00:54:30 -07:00
Eggbertx
26dcb34edf Apply suggestions made by DeepSource 2024-08-30 23:08:01 -07:00
Eggbertx
ec63cf0ac9 Improve error handling during post formatting 2024-08-26 21:16:03 -07:00
Eggbertx
84c101e865 Clean up some no longer used code 2024-08-25 17:30:18 -07:00
Eggbertx
cea738adb1 Fix POST requests not working on manage pages, don't reject the post if filter action = log 2024-08-25 17:20:21 -07:00
Eggbertx
ce293d3e24 replace is_regex in filters with more string matching options (substring, regex, exact match) 2024-08-24 15:37:34 -07:00
Eggbertx
dbc9702b6d Fix DoPostFiltering using post ID instead of board ID 2024-08-23 17:17:46 -07:00
Eggbertx
35860a8a6d Implement file fingerprint, filename, and checksum banning via filter conditions 2024-08-17 16:26:11 -07:00
Eggbertx
d40e561287 Start migrating wordfilter struct and usage 2024-08-11 13:59:58 -07:00
Eggbertx
b85b91c04d Don't write file thumbnail if spoiler (otherwise it overwrites /spoiler.png)
Also add spoilering for videos and non-video non-image uploads
2024-07-29 21:05:03 -07:00
Eggbertx
3547b3117e Use proper "Go-like" names for file modes
Try to create log dir if it doesn't exist
2024-05-17 10:57:23 -07:00
Eggbertx
f4a3908aa7 Simplify generating zerolog info and error events for requests 2024-04-19 13:45:57 -07:00
Eggbertx
8464c2447c Fix template issues with pointer/non-pointer receivers 2024-03-27 11:13:31 -07:00
Eggbertx
4917fdf3da Separate template functions 2024-03-26 17:49:22 -07:00
Eggbertx
09dfa2c3da Move init functions that only use public functions to dedicated subdirectories 2024-03-26 17:10:33 -07:00
Eggbertx
67e4d9d263 Remove config.SetDefaults 2024-03-26 17:05:21 -07:00
Eggbertx
bd6992cb87 Make zerolog error Event usage more consistent (Caller on the same line as Err) 2024-03-18 12:41:03 -07:00
Eggbertx
90b98c76de Create event for reloading board and section arrays 2024-03-13 14:58:22 -07:00
Eggbertx
be3cd50c08 Move flag attaching to separate function 2024-03-13 13:58:36 -07:00
Eggbertx
4b5ea350eb Start moving template functions to their respective packages 2024-03-13 13:41:15 -07:00