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

44 commits

Author SHA1 Message Date
Eggbertx
12ce2a71be Audit security issues pointed out by Deepsource 2024-02-07 15:01:19 -08:00
Eggbertx
d892e77b3b Avoid deferring calls to Close() if it may return an error 2024-02-06 12:30:18 -08:00
Eggbertx
52eb3e2135 Move log closing to end of defer func 2024-01-24 10:37:28 -08:00
Eggbertx
b3e7af65f7 Add configurable ISO code to MMDB, optionally get IP from env for debugging 2024-01-12 15:00:32 -08:00
Eggbertx
57693ba549 Replace IP field of IPBan with RangeStart and RangeEnd 2023-12-28 23:06:44 -08:00
Eggbertx
84ae85628f Add LogTime function and don't log expires or appealAt values if ban is permanent or can't be appealed, respectively 2023-12-28 15:40:17 -08:00
Eggbertx
28963eb813 Add IP Range parsing, start working on adding range bans 2023-12-28 00:36:24 -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
a8436c5ee4 Fix some issues reported by DeepSource 2023-12-19 14:33:40 -08:00
Eggbertx
9688082339 Move Lua plugin loaders to their respective gochan packages 2023-10-24 16:27:27 -07:00
Eggbertx
0fd9a3a812 Use stdout instead of stderr for multiwriter 2023-10-23 10:33:53 -07:00
Eggbertx
08fc8d5507 Remove unnecessary log hook 2023-10-19 11:42:01 -07:00
Eggbertx
b3a57f50a8 Add non-RPC changes to master 2023-10-19 11:33:21 -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
a0c0466725 Make thumbnail extension determining more dynamic, move to uploads pkg 2023-07-14 11:04:46 -07:00
Eggbertx
51832082a9 Use testify assertions in test functions 2023-06-09 10:15:41 -07:00
Eggbertx
5be67fe29d Move topbar into its own template file so that it can be overridden
resolves #39
2023-05-23 08:47:27 -07:00
deepsource-autofix[bot]
1d92be6f63
refactor: unused parameter should be replaced by underscore
Unused parameters in functions or methods should be replaced with `_`
(underscore) or removed.
2023-05-22 15:57:55 +00:00
Eggbertx
ef5a9f49c3 Add webp, zip, pdf uploading support 2023-04-26 13:10:38 -07:00
Eggbertx
423dd25713 Correct extensions for video uploads (missing period at beginning) 2023-04-14 08:46:24 -07:00
Eggbertx
34cab06311 Add ability to update thread attributes from manage page 2023-02-02 11:12:39 -08:00
Eggbertx
78feba0994 Add skipcq for some deepsource issues that are there for a reason 2023-01-04 23:40:35 -08:00
Eggbertx
f3add8bb89 Use more standardized file modes 2022-12-31 17:29:57 -08:00
Eggbertx
07a4b22396 Write to standard output if debug mode is enabled 2022-11-10 12:27:57 -08:00
Eggbertx
5154aa93cc Pass Error and info events to manage action callback functions 2022-11-10 12:18:13 -08:00
Eggbertx
b16fdc81b8 Fix building errors for de-deprecation 2022-11-09 10:15:37 -08:00
Eggbertx
379e846daf Add filename and username banning, add more de-deprecation stuff to posting/post.go 2022-11-07 12:56:51 -08: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
deepsource-autofix[bot]
f639fdde6d
Fix unused method receiver 2022-09-04 21:57:01 +00:00
Eggbertx
ee61fcb30f Replace gclog/gzlog with structured logging via zerolog 2022-09-04 14:27:14 -07:00
Eggbertx
0415b3066a If upload is gif and not bigger than a thumbnail, still create a thumbnail if it's animated 2022-06-18 12:49:12 -07:00
Eggbertx
8e706a313c Make template for recent posts page
Also make manage page h1 headers automatic
2022-01-29 23:47:13 -08:00
Eggbertx
62a31e651e Add utility function for getting file parts 2021-12-15 23:42:07 -08:00
Eggbertx
d94d79a7d1 Replace gcutil shims with calls to gcutil functions 2021-04-21 17:03:00 -07:00
Eggbertx
c385a39bec Add config option to set max age for staff cookies
resolves  #41
2021-03-26 11:10:05 -07:00
Eggbertx
2382b30af1 Move minifier functions to serverutil package
gcutil should only be used for stuff that doesn't require configuration
2021-03-25 14:42:46 -07:00
Eggbertx
8ccd217ff0 Add mp4 support 2021-03-24 11:44:50 -07:00
Eggbertx
485ed84bac Add build.py to eventually replace build.ps1 and Makefile
TODO: add installation code and update README.md
2020-10-23 19:13:06 -07:00
Eggbertx
e6838817fd Replace GcError struct usage with builtin error
Creating it was probably a bad idea and not worth the trouble.
2020-06-06 09:28:45 -07:00
Eggbertx
feec3d87e8 replace (most) uses of builtin error with *gcutil.GcError 2020-05-28 12:49:41 -07:00
Eggbertx
604c776dbf Add error type 2020-05-23 12:00:15 -07:00
Eggbertx
d1292bd9fe refactor/reorganize gochan's source code into subpackages
Also use Go version 1.11 in vagrant for module support
2020-04-29 17:44:29 -07:00