Eggbertx
7a37003be2
Move fingerprinting/SQL work to uploads package
2024-02-19 16:58:40 -08:00
Eggbertx
6be85e960a
Remove Println from FingerprintFile
2024-02-19 15:58:11 -08:00
Eggbertx
96c2c2bffe
Add on-demand fingerprinting function available to mods
2024-02-19 15:55:12 -08:00
Eggbertx
4d187a27c8
Add fingerprinting stuff to file bans form
2024-02-18 16:42:27 -08:00
Eggbertx
d5db071447
Move staff options to staffinfo callback
2024-02-18 15:09:46 -08:00
Eggbertx
c5e44eb915
Make post info use a struct for safer typing, add staff-specific options JSON
2024-02-18 14:48:06 -08: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
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
deepsource-autofix[bot]
4b7f371574
refactor: unused parameter should be replaced by underscore
...
Unused parameters in functions or methods should be replaced with `_`
(underscore) or removed.
2024-02-07 05:54:09 +00:00
Eggbertx
033a28936b
Refactor manage function callbacks into their own separate functions
2024-02-06 21:46:42 -08:00
Eggbertx
d892e77b3b
Avoid deferring calls to Close() if it may return an error
2024-02-06 12:30:18 -08:00
deepsource-autofix[bot]
b457db6aa7
refactor: replace empty slice literal with var
...
An empty slice can be represented by `nil` or an empty slice literal. They are
functionally equivalent — their `len` and `cap` are both zero — but the `nil`
slice is the preferred style. For more information about empty slices,
see [Declaring Empty Slices](https://github.com/golang/go/wiki/CodeReviewComments#declaring-empty-slices ).
2024-02-06 19:45:51 +00: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
c26b7e9e1d
Push gctemplates module table to the stack in preload function
2024-01-22 09:52:34 -08:00
Eggbertx
f78bcd3704
Add custom flag usage during post processing
2024-01-21 17:16:27 -08:00
Eggbertx
6085988889
Add flag selection to template
2024-01-21 16:42:01 -08:00
Eggbertx
51c884ae6b
Add custom flag validation, as well as custom flag validation
2024-01-21 16:02:53 -08:00
Eggbertx
2007b90556
Add basic geoip detection to posts, add image to post flag template
2024-01-20 22:41:40 -08:00
Eggbertx
04d25a211f
Add post flag template
2024-01-17 15:56:01 -08:00
Eggbertx
24ff232c59
Add flag and country to post queries
2024-01-17 15:55:41 -08:00
Eggbertx
1deec0e462
Add country and flag columns to DB version 3 schema
2024-01-12 15:51:05 -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
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
3fd9778427
Simplify querying for building.Post
2024-01-09 13:51:24 -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
d294462968
Fix SQL string replacer messing with prepared statements in Postgres
2024-01-02 17:02:42 -08:00
Eggbertx
121959fa15
Convert DBPREFIXposts.ip and DBPREFIXreports.ip to VARBINARY
2024-01-01 13:30:32 -08:00
Eggbertx
204ae9506f
Update ban page and ban submission to accomodate ranges
2023-12-31 18:02:42 -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
138b41bf0a
Don't check GeoIP (to be fixed in the next release)
2023-12-27 12:01:02 -08:00
Eggbertx
e968dc875a
Finish browser-based template editor, resolves issue #90
2023-12-26 17:02:09 -08:00
Eggbertx
6fbfb731bd
Sort template list before it is returned
2023-12-21 16:58:53 -08:00
Eggbertx
7e07e24f16
Add template loading to the templates manage action
2023-12-21 15:55:29 -08:00
Eggbertx
a8436c5ee4
Fix some issues reported by DeepSource
2023-12-19 14:33:40 -08:00
Eggbertx
b252e65ba7
Make templates private, accessible via template filename
2023-12-19 13:32:25 -08:00
Eggbertx
4c73891ff5
Add template override page (doesn't do anything yet)
2023-12-10 20:46:08 -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
2e5e56b142
Add webPathDir template function (appends a trailing slash)
2023-12-07 12:11:58 -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
735470081c
Add JSON support to Lua and IPHub plugin
2023-10-27 17:03:13 -07:00
Eggbertx
79b5eb9996
Simplify table key alias checking
2023-10-26 10:54:31 -07:00