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

676 commits

Author SHA1 Message Date
Eggbertx
8ec6b64b1b Merge branch 'audit-config-fields' 2025-03-07 23:24:57 -08:00
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
7b86650733 Move Lockdown fields to BoardConfig 2025-03-07 16:48:34 -08:00
Eggbertx
6911682d84 Redirect to manage action (if specified) on login 2025-03-07 16:13:57 -08:00
Eggbertx
82099a76a7 Use CookieMaxAge when making a post 2025-03-03 20:58:05 -08:00
Eggbertx
b0e88c551d Return error in InitConfig instead of exiting outright if something goes wrong 2025-03-03 17:16:48 -08:00
Eggbertx
b9ca2dd8e7 Finish adding documentation comments for config struct fields 2025-03-02 17:18:34 -08:00
Eggbertx
cd82fba22f Add PostConfig documentation 2025-03-02 16:59:56 -08:00
Eggbertx
173546b401 Add more documentation (and test documentation updater) 2025-03-02 16:53:29 -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
caaeef2942 Don't fail a test if the current directory is /vagrant (assumed to be testing in a VM) 2025-03-02 13:41:12 -08:00
Eggbertx
e4d2b51456 Make the deprecated fields ListenIP and SiteDomain empty if they are used as an alias 2025-03-02 12:57:22 -08:00
Eggbertx
94f2deadec Add more comments to config struct fields, rename ListenIP to ListenAddress and SiteDomain to SiteHost, since they are more accurate. 2025-03-02 12:44:42 -08:00
Eggbertx
f27deaad34 Start adding more config struct field comments for documentation 2025-02-26 00:53:06 -08:00
Eggbertx
46a692767c Validate updated rank value 2025-02-25 22:55:25 -08:00
Eggbertx
b2c5a2d737 Clean up staff edit page 2025-02-25 22:47:42 -08:00
Eggbertx
c5aa7a438d Merge branch 'master' into staff-rank-update 2025-02-24 17:28:09 -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
deepsource-autofix[bot]
39fdc0566f
refactor: fix unused method receiver
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep 
the same method signature, omit the receiver name or '_' as it is unused.
2025-02-19 04:05:57 +00:00
deepsource-autofix[bot]
c842ca53f5
refactor: unused parameter should be replaced by underscore
Unused parameters in functions or methods should be replaced with `_`
(underscore) or removed.
2025-02-19 03:57:55 +00:00
Eggbertx
74f9e415b4 Fix deepsource issues 2025-02-18 19:50:41 -08:00
Eggbertx
5ae229d61e Add LoadPlugins test 2025-02-18 13:16:07 -08:00
Eggbertx
aba2c68221 Use h1 instead of div for lightbox title, footer element instead of div#footer 2025-02-18 12:59:20 -08:00
Eggbertx
e0ee76bce1 Add Lua tests for url module provider 2025-02-18 11:56:09 -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
7ceda2b218 Fully refactor all (or at least most) uses of ExecSQL, QuerySQL, and QueryRowSQL, QueryContextSQL, etc with their replacement functions 2025-02-05 23:32:12 -08:00
Eggbertx
10e0da4492 Add future-proof functions using struct for context, tx, etc 2025-02-05 17:32:10 -08:00
Eggbertx
a38a519e4e Fix database locked error in announcement migration 2025-02-02 15:35:57 -08:00
Eggbertx
9298aa42c3 Return error if section doesn't exist while updating 2025-02-02 15:07:47 -08:00
Eggbertx
1463bbaa63 Update post handler, use EnableCyclicThreads instead of CyclicThreadNumPosts for validation 2025-01-19 12:27:24 -08:00
Eggbertx
6fee340532 Fix failing test cases 2025-01-19 12:06:50 -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
2af46eb9be Add some post tests 2025-01-12 21:30:23 -08:00
Eggbertx
17fa8470c4 Check if cyclical threads are enabled 2025-01-12 16:33:43 -08:00
Eggbertx
0c48086ba0 Add config option for enabling/disabling cyclical thread creation 2025-01-12 16:33:11 -08:00
Eggbertx
db2edb8638 Update test 2025-01-12 16:30:47 -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
e7e9a360f9 Add serverError type to be used by error serving functions to set the HTTP status code 2025-01-12 14:00:06 -08:00
Eggbertx
74d8136f26 Re-add upload.PostID and upload.FileOrder assignment 2025-01-11 14:39:21 -08:00