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

63 commits

Author SHA1 Message Date
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
cd08541e04 Move SQL configuration to a separate struct 2024-05-01 17:23:10 -07:00
Eggbertx
56dbc38164 Add minifier tests 2024-03-30 23:44:01 -07:00
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
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
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
f3add8bb89 Use more standardized file modes 2022-12-31 17:29:57 -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
6567da3300 Add de-deprecation stuff (will not build yet) 2022-10-11 14:26:31 -07:00
Eggbertx
d2c5015714 Replace deprecated ioutil imports 2022-09-08 15:45:29 -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
bc8e30828a Add function for getting the path relative to the site's WebRoot 2022-07-18 12:34:43 -07:00
Eggbertx
495399eae7 Add simple plugin loader
(though it doesn't do anything useful yet)
2022-06-01 14:17:27 -07:00
Eggbertx
2b4e1bfc51 Replace sql.Drivers call with manual array
add GochanConfig testing property that prevents writing if true
2022-02-01 16:41:05 -08:00
Eggbertx
a4149d4c5d Separate post into separate template 2022-01-27 21:02:37 -08:00
Eggbertx
bb9d4be884 Add home link to top and bottom board lists 2021-09-01 12:46:26 -07:00
Eggbertx
c15c173d9d Use built-in driver list to check if config has a valid DBtype 2021-08-24 10:57:29 -07:00
Eggbertx
9c75b85eb3 Add configuration documentation, finish cfg refactoring 2021-08-01 22:44:53 -07:00