1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-27 11:26:22 -07:00
Commit graph

249 commits

Author SHA1 Message Date
Eggbertx
5c26c40ef6 Move successful migration logging to dbupdate.go 2025-08-07 11:24:47 -07:00
Eggbertx
26c44f1d3d Move gcupdate "migration" to be handled by the main gochan executable 2025-08-01 11:54:28 -07:00
Eggbertx
b3302e7f62 Log listening port when server starts, move fatal logging for unsupported captcha type to main function 2025-07-27 15:58:53 -07:00
Eggbertx
815341cd35 Update gochan-migration, fix incorrect usage of common.ColumnType, and check if filters table exists before preparing pre-filter tables for migration 2025-07-25 14:54:54 -07:00
Eggbertx
1d479753c0 Add more information to initial log 2025-07-22 16:59:13 -07:00
CrawlerBleak
9b361d0744
Add log statement upon listening for requests (fixes #133)
I thought the program was stuck building consts.js, but it was actually listening. This makes it more clear about what it's actually doing.
2025-07-21 23:08:44 -07:00
Eggbertx
7a0cbb06e3 Make LICENSE a symbolic link to cmd/gochan-installer/license.txt to avoid potential build issues 2025-07-19 19:49:48 -07:00
Eggbertx
8c14bf18d7 Add option to skip admin creation if the database appears to be provisioned already 2025-07-19 19:33:18 -07:00
Eggbertx
062cafc4f2 consolidate path validation, remove platform-specific files from gochan-installer (since that is now handled by the config package) 2025-07-11 15:54:03 -07:00
Eggbertx
564d659e02 Don't create /etc/gochan or /var/log/gochan during vagrant provisioning, since gochan-install will do that 2025-07-11 14:58:45 -07:00
Eggbertx
8f70343880 Properly stop installer server after last page has been rendered and sent 2025-07-10 12:39:17 -07:00
Eggbertx
bbf7f5f097 re-add missing staff creation code 2025-06-27 17:13:40 -07:00
Eggbertx
d5f489ef22 implement all installer pages, add DBPREFIX to constraints (not necessary to update if already installed) 2025-06-27 17:01:57 -07:00
Eggbertx
ccad76ff28 Use constants for environment variables, check GOCHAN_CONFIG value before standard gochan.json locations 2025-06-26 10:10:17 -07:00
Eggbertx
80bc25135a Add path form validation 2025-05-19 22:29:56 -07:00
Eggbertx
a45a2984d5 Add form fields for configuration paths, update database test handling 2025-05-19 21:41:30 -07:00
Eggbertx
6a87d74258 Implement database configuration and validation 2025-05-16 14:19:52 -07:00
Eggbertx
772bd265f9 Start setting up gochan-installer for providing a web interface for setting up configuration 2025-05-15 14:13:15 -07:00
Eggbertx
fbee82edee Fix gochan-migrate not running if DBprefix is empty 2025-05-11 20:12:01 -07:00
Eggbertx
4598aced3b use term.ReadPassword for reading os.Stdin to a password 2025-05-08 19:34:50 -07:00
Eggbertx
4778a631ba Improve password handling by returning an error on abortion and checking in the calling function 2025-05-08 17:38:22 -07:00
Eggbertx
7a4d28d3d9 Refactor command line initialization and logging error handling 2025-05-08 16:34:11 -07:00
Eggbertx
d923c73000 Rework command line staff management commands and password handling, update logging initialization options, and bump version to 4.2.0 in preparation for upcoming release 2025-05-07 14:51:57 -07:00
Eggbertx
305b557e41 Refactor threads table, rename cyclical attribute to cyclic for consistency 2025-05-02 11:47:01 -07:00
Eggbertx
9191c6e380 (re)build consts.js on startup 2025-04-22 17:39:36 -07:00
Eggbertx
c143596f80 Replace parsed gochan version type with constant string and DB version passed by parameter with constant int 2025-04-22 17:03:52 -07:00
Eggbertx
83f8601334 Refactor thread and post data structures to include IsSpoilered and update related queries and templates (still a WIP) 2025-04-21 17:10:42 -07:00
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