1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-10 12:56:24 -07:00
Commit graph

71 commits

Author SHA1 Message Date
Eggbertx
1417695dcc Add sqlmock tests 2024-03-28 23:04:22 -07:00
Eggbertx
67e4d9d263 Remove config.SetDefaults 2024-03-26 17:05:21 -07:00
Eggbertx
b0a19402a8 Add some more tests to gcutil, remove some unused functions 2024-03-13 10:34:13 -07:00
Eggbertx
0795a0a8a8 Merge fingerprinting package into uploads package 2024-02-14 15:18:11 -08:00
Eggbertx
5e7a648e37 Start adding ahash fingerprinting support 2024-02-12 15:22:58 -08:00
Eggbertx
d892e77b3b Avoid deferring calls to Close() if it may return an error 2024-02-06 12:30:18 -08:00
Eggbertx
f78bcd3704 Add custom flag usage during post processing 2024-01-21 17:16:27 -08:00
Eggbertx
51c884ae6b Add custom flag validation, as well as custom flag validation 2024-01-21 16:02:53 -08:00
Eggbertx
44ec667544 Add geoip package, make geoip config more flexible 2024-01-12 13:54:05 -08:00
Eggbertx
8e9543970a Remove "Verbosity" config field and rename "DebugMode" to "Verbose" for enabling command line output on errors 2023-12-27 17:07:33 -08:00
Eggbertx
138b41bf0a Don't check GeoIP (to be fixed in the next release) 2023-12-27 12:01:02 -08:00
Eggbertx
edd2c30d32 Use the default style set in the boards table before checking board.json 2023-12-08 15:29:04 -08:00
Eggbertx
5980283218 Add MaxMind GeoIP loading 2023-12-06 14:54:51 -08:00
Eggbertx
78fe84ad7f Add some more info to gochan.example.json for DB stuff 2023-12-05 11:57:52 -08:00
Eggbertx
9688082339 Move Lua plugin loaders to their respective gochan packages 2023-10-24 16:27:27 -07:00
Eggbertx
9a8cd64d2d Move Akismet checking to plugin 2023-10-20 16:49:46 -07:00
Eggbertx
13f97233a8 Refactor duration error checking to use errors from durationutil pkg 2023-08-30 11:20:24 -07:00
Eggbertx
c07d610ee5 Move duration parsing string to a separate repo 2023-08-28 12:33:43 -07:00
Eggbertx
51832082a9 Use testify assertions in test functions 2023-06-09 10:15:41 -07:00
Eggbertx
9ad584b035 Remove unused BoardListConfig 2023-06-09 09:35:42 -07:00
Eggbertx
1aeaf328a7 Remove no longer used critical structure tag 2023-06-05 13:29:04 -07:00
Eggbertx
de078c3065 Simplify adding custom thumbnails 2023-06-02 12:52:18 -07:00
Eggbertx
d2ace418fa Move default configuration values to a struct 2023-05-10 14:06:40 -07:00
Eggbertx
530011be61 Enable processing of files with extensions explicitly allowed by the admin 2023-04-26 13:23:12 -07:00
Eggbertx
ef5a9f49c3 Add webp, zip, pdf uploading support 2023-04-26 13:10:38 -07:00
Eggbertx
f0c13f21ba Make image metadata stripping (via exiftool) work 2023-04-15 10:43:00 -07:00
Eggbertx
f7da3ad9f5 Add request for random banner to server, add code for frontend to use it 2023-04-10 15:13:26 -07:00
Eggbertx
f786ff4269 Update board configurations when the board array is reset 2023-04-10 08:31:27 -07:00
Eggbertx
9f7d5ad3ac Add function for checking default values with generics 2023-04-03 14:20:28 -07:00
Eggbertx
3e9979e5d6 Fix exif stripping configuration (exiftool not yet used) 2023-03-19 16:56:26 -07:00
Eggbertx
637c357bf3 rename struct ErrInvalidValue to InvalidValueError, remove unused function GochanConfig.ToMap()
Also check exiftool path in ValidateValues if relevant settings are set
2023-03-19 16:23:39 -07:00
Eggbertx
3d430e7d83 Remove the no-longer-used PostsPerThreadPage setting 2023-01-09 09:05:18 -08:00
Eggbertx
0548752661 Exit if logs weren't opened correctly, also add error checking for uid and gid 2022-12-31 17:57:43 -08:00
Eggbertx
f3add8bb89 Use more standardized file modes 2022-12-31 17:29:57 -08:00
Eggbertx
76a4f92e18 Make config.Username useful (applies given username ownership to files) 2022-12-31 01:51:14 -08:00
Eggbertx
9e13eae658 Add configuration option to only require CAPTCHA test for new threads 2022-12-20 14:29:27 -08:00
Eggbertx
6e81fc3b98 Add configuration option to require a file for new threads
(Wasn't this here before at some point?)
2022-12-20 13:33:33 -08:00
Eggbertx
89457e47f7 Replace internal self-generated captcha tests with hcaptcha 2022-12-20 13:13:08 -08:00
Eggbertx
3b131e1399 make RecentPostsWithNoFile work, incrase default recent posts to 12 2022-12-17 11:05:48 -08:00
Eggbertx
bd69e27bea Use the correct cooldown config fields 2022-12-14 12:41:25 -08:00
Eggbertx
07a4b22396 Write to standard output if debug mode is enabled 2022-11-10 12:27:57 -08:00
Eggbertx
6567da3300 Add de-deprecation stuff (will not build yet) 2022-10-11 14:26:31 -07:00
Eggbertx
2c3429256f Separate access info into separate log file 2022-09-18 15:32:07 -07:00
Eggbertx
d2c5015714 Replace deprecated ioutil imports 2022-09-08 15:45:29 -07:00
Eggbertx
ee61fcb30f Replace gclog/gzlog with structured logging via zerolog 2022-09-04 14:27:14 -07:00
Eggbertx
5b5d5ab3ec Replace sqlmock with sqlite3 for unit testing gcsql package 2022-09-01 22:42:06 -07:00
Eggbertx
9107269a39 Upgrade Go version in vagrant and Docker, readd sqlite3 for real this time
requires intervention for vagrant to add the updated Go repo
2022-08-30 11:30:59 -07:00
Eggbertx
3fa042167e Add sqlmock driver and schema initialization 2022-08-28 19:26:03 -07:00
Eggbertx
c97aa9fdc7 Remove .log from end of log paths 2022-07-18 16:40:24 -07:00
Eggbertx
bc8e30828a Add function for getting the path relative to the site's WebRoot 2022-07-18 12:34:43 -07:00