Eggbertx
0d68fc78cf
Add fingerprinting table update to gochan-migrate
2024-02-12 13:52:00 -08:00
Eggbertx
2a49de7575
Audit potential bugs pointed out by Deepsource
2024-02-07 15:15:56 -08:00
Eggbertx
12ce2a71be
Audit security issues pointed out by Deepsource
2024-02-07 15:01:19 -08:00
Eggbertx
e61d1e50c6
Handle SetupGeoIP if not set
2024-02-06 22:03:31 -08:00
Eggbertx
72a1795c11
skipcq: CRT-D0011 (call to os.Exit made in function using defer)
2024-02-06 12:40:53 -08:00
Eggbertx
f62e2a506f
Remove redundant defer
2024-02-06 12:34:30 -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
39908d74c6
Set up lua GeoIP handler registration and Cloudflare GeoIP header example plugin
2024-01-22 16:48:20 -08:00
Eggbertx
5b000385da
Log GC_TESTIP (testing IP address) if it is set
2024-01-21 17:21:40 -08:00
Eggbertx
1deec0e462
Add country and flag columns to DB version 3 schema
2024-01-12 15:51:05 -08:00
Eggbertx
44ec667544
Add geoip package, make geoip config more flexible
2024-01-12 13:54:05 -08:00
Eggbertx
9352f0b611
Fix prefix not being applied in DB update
2024-01-09 21:45:39 -08:00
Eggbertx
0e34698257
Add more Postgres db migration for IP -> INET, split dbtypes into their own files
2024-01-09 13:11:22 -08:00
Eggbertx
121959fa15
Convert DBPREFIXposts.ip and DBPREFIXreports.ip to VARBINARY
2024-01-01 13:30:32 -08:00
Eggbertx
57693ba549
Replace IP field of IPBan with RangeStart and RangeEnd
2023-12-28 23:06:44 -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
138b41bf0a
Don't check GeoIP (to be fixed in the next release)
2023-12-27 12:01:02 -08:00
Eggbertx
a8436c5ee4
Fix some issues reported by DeepSource
2023-12-19 14:33:40 -08:00
Eggbertx
5980283218
Add MaxMind GeoIP loading
2023-12-06 14:54:51 -08:00
Eggbertx
9a8cd64d2d
Move Akismet checking to plugin
2023-10-20 16:49:46 -07:00
Eggbertx
cc76b25a8d
Move SQL driver imports to gcsql package, add SQL connection time limits
...
7cf5482876/README.md (important-settings)
2023-08-18 08:33:50 -07:00
Eggbertx
a0c0466725
Make thumbnail extension determining more dynamic, move to uploads pkg
2023-07-14 11:04:46 -07:00
Eggbertx
4078197b8d
Move upload handling to subpackage
2023-07-12 14:20:41 -07:00
Eggbertx
8b42d4102e
Don't double-log if an event recovered from a panic
2023-06-12 08:50:45 -07:00
Eggbertx
6d22c86df1
Add message-pre-format event trigger
2023-06-09 15:16:34 -07:00
deepsource-autofix[bot]
79bae10fa1
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.
2023-05-22 22:09:00 +00: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
761074d6b2
Add a few more event triggers, to be triggered only once
2023-04-20 08:25:21 -07:00
Eggbertx
64956ecd2d
Don't override global banners in randomBanner if a board is requested
2023-04-11 12:19:24 -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
ada23ffed8
Print a separate string if the database was updated instead of migrated
2023-04-07 15:11:02 -07:00
Eggbertx
17c28e5ebe
Move database schema updating to gochan-migration
2023-04-07 14:34:28 -07:00
Eggbertx
29f54a6064
parse command line flags in gochan-migration before loading config
2023-03-29 09:35:46 -07:00
Eggbertx
69654caeb4
Make thread movement use proper password, improve logging
2023-02-15 11:53:00 -08:00
Eggbertx
46db3e0abc
Fix edit post not letting non-privileged users edit their posts
2023-02-11 15:33:15 -08:00
Eggbertx
f82b9761f8
Make stickied threads show up on top
2023-02-09 11:25:21 -08:00
Eggbertx
bef2e1875b
Add GET handler for /post, redirect to site root
2023-02-03 08:02:24 -08:00
Eggbertx
4f843d5431
(Re)add next and previous page links
...
Add not-yet-used function to remove old threads that are past the board's limit
Also add functions to simplify querying with transactions
2023-01-18 12:35:40 -08:00
Eggbertx
91783c5837
Move router initialization to a new, server package, make serverutil a subpackage
...
This allows for more flexibility
2023-01-06 14:38:35 -08:00
Eggbertx
6af9f7155f
Put fmt.Println initial error reporting before fatal logging,
...
also only call them if debug mode is not set (because logging is also printed to console if it is)
2023-01-05 16:55:27 -08:00
Eggbertx
43d941c837
Replace all usage of webroot template variable with webPath function
2023-01-04 23:13:59 -08:00
Eggbertx
aba84ceed2
Use router package instead of GET parameter for manage pages
2023-01-04 15:33:50 -08:00
Eggbertx
c38816b5df
Properly create plugins table on startup, close Lua state on end
2022-12-29 16:58:49 -08:00
Eggbertx
820f5b993b
Fix thread upload deletion
2022-12-24 20:53:56 -08:00
Eggbertx
ec34ff9f4a
Make naming conventions in templates more consistent with Go conventions
2022-12-22 12:58:18 -08:00
Eggbertx
8a73e1aa13
Use raw message text in recent post query
2022-12-17 17:38:56 -08:00
Eggbertx
92924db1eb
Fix deleted uploads not being unlinked when the post is edited
2022-12-17 17:28:31 -08:00
Eggbertx
f7ca807144
Add ability to replace file uploads
2022-12-17 16:30:52 -08:00