1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-16 01:36:24 -07:00
Commit graph

222 commits

Author SHA1 Message Date
Eggbertx
b1d267836a Make doesGochanPrefixTableExist public for use in migration, improve error handling for database version retrieval. 2025-04-20 14:48:56 -07:00
Eggbertx
61693f4a4a Exit without errors (but with warning message) if database is empty, and with appropriate message if database_version exists but doesn't have gochan db version 2025-04-20 14:03:22 -07:00
Eggbertx
f37dbbc840 Rename threads column spoilered to is_spoilered for consistency 2025-04-16 16:57:44 -07:00
Eggbertx
3dc45fef53 Add spoilered column and migration, update tests in gctemplates to use goquery to not have to test against really big strings 2025-04-13 01:18:55 -07:00
Eggbertx
556de0d4ac Show secure tripcodes 2025-04-06 16:07:37 -07:00
Eggbertx
4c0ce122ad Add is_secure_tripcode column to posts and update gochan-migration to add it 2025-04-06 15:08:46 -07:00
Eggbertx
ce53ad299c Update edit page to handle adding new embed/upload 2025-04-05 16:18:11 -07:00
Eggbertx
1bea3a7e1c Add check for embed before deleting post files 2025-03-31 23:10:05 -07:00
Eggbertx
734274d4ff Fix delete "file only" for embed posts 2025-03-31 22:24:52 -07:00
Eggbertx
47afdd0ca8 Use zerolog for logging to console (with few exceptions) for consistency 2025-03-29 14:04:43 -07:00
Eggbertx
4aab676c67 Improve request validation and logging, implement cleanup for reports of deleted posts. 2025-03-28 17:34:00 -07:00
Eggbertx
faf1457c36 Remove mostly unused Verbose config field, add LogLevel 2025-03-25 21:55:21 -07:00
Eggbertx
8fe4c25938 Check for NSFW tags and show an error if they are not allowed on the board (or site) 2025-03-09 14:14:35 -07:00
Eggbertx
3b12039f38 Add warning event to gcutil.LogRequest, improve error messages 2025-03-07 23:14:27 -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
46b638feca Move documentation generator to a separate repo 2025-03-02 15:19:20 -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
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
1df8f289eb re-add documentation generator 2025-02-26 00:19:50 -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
dfb9fc045c Add dice roll styling 2025-02-09 17:45:43 -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
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
cbd1dd8a99 Start changing migrating to have "in-place" migration rename boards to be recreated and populated 2025-02-02 15:26:33 -08:00
Eggbertx
fcb61cac57 Use separate function to validate pre2021 migration results 2025-01-26 22:35:35 -08:00
Eggbertx
2f39e9d7cc Add tests for announcement migration 2025-01-26 17:12:23 -08:00
Eggbertx
5c4e200631 Implement in-place announcement migration 2025-01-26 17:01:27 -08:00
Eggbertx
d3c985bd50 Implement staff and ban migration in place, and the respective tests 2025-01-26 16:24:45 -08:00
Eggbertx
f0f0f055da Add post migration in place 2025-01-25 17:46:55 -08:00
Eggbertx
cec68cb29b Implement in-place board migration 2025-01-25 13:34:33 -08:00
Eggbertx
12350cc33f Add warning when migrating a SQLite database in-place 2025-01-25 13:01:52 -08:00
Eggbertx
65d4dee673 Add alter statements for in-place board migration 2025-01-25 11:41:26 -08:00
Eggbertx
e2b5883e51 Start implementing in-place migration for pre2021 2025-01-19 15:04:03 -08:00
Eggbertx
b966604d1d Avoid using Select * in SQL queries, normalize some view columns 2025-01-12 14:01:36 -08:00
Eggbertx
625aadb0d0 Update TestPre2021Migration with proper assertion 2025-01-10 17:37:27 -08:00
Eggbertx
5d782c4eab Add clarification to migrator comments 2025-01-10 16:44:19 -08:00
Eggbertx
175710b43b Add announcement migration 2025-01-05 17:23:18 -08:00
Eggbertx
4f9f1e0d3f Add migrating pre-2021 name/file bans to filters 2025-01-05 16:01:17 -08:00
Eggbertx
01d7a722a5 Properly migrate ban staff ID 2025-01-05 15:37:46 -08:00
Eggbertx
7cb3100140 Implement pre-2021 staff migration to new DB 2025-01-05 15:18:11 -08:00
Eggbertx
1dc22b6571 Add stubs for pre-2021 staff migration 2025-01-05 14:11:11 -08:00
Eggbertx
a34a1f1d57 Add board ban migration and verify that no invalid bans were migrated 2025-01-03 23:39:45 -08:00
Eggbertx
9ca424f4da Ad test for pre2021 ban migration and start adding implementation 2025-01-03 23:21:16 -08:00
Eggbertx
ee0b91059f Add pre-2021 post upload migration 2025-01-03 22:01:16 -08:00