1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-19 20:56:23 -07:00
Commit graph

456 commits

Author SHA1 Message Date
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
Eggbertx
a417d49df9 Replace http lua library with just a client for significantly smaller binary size 2023-10-25 13:52:31 -07:00
Eggbertx
9688082339 Move Lua plugin loaders to their respective gochan packages 2023-10-24 16:27:27 -07:00
Eggbertx
b0c6f2bd98 Move staff argument in ban_ip out of table 2023-10-24 15:38:13 -07:00
Eggbertx
1dabea35df Add ban_ip lua function 2023-10-24 15:22:41 -07:00
Eggbertx
0fd9a3a812 Use stdout instead of stderr for multiwriter 2023-10-23 10:33:53 -07:00
Eggbertx
9a8cd64d2d Move Akismet checking to plugin 2023-10-20 16:49:46 -07:00
Eggbertx
8f9e64eb8e Add http requests and await/async to Lua plugins 2023-10-19 11:54:12 -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
b80c8b3f76 Add announcement functionality 2023-09-03 16:48:42 -07:00
Eggbertx
d5e614b664 Remove unused manage_config.html template and function, add manage_announcements.html 2023-09-03 00:48:12 -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
cf11d1a490 Show bans in descending order 2023-08-18 08:55:27 -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
e580c6529e Document Lua plugin functions, bump version to 3.8.0 2023-08-09 11:57:50 -07:00
Eggbertx
de2815c653 Add PDF handling plugin 2023-07-14 17:53:46 -07:00
Eggbertx
686c6fc004 Make OPs use the correct thumbnail 2023-07-14 17:53:26 -07:00
Eggbertx
53d5c877ed Print stack trace in MakePost to stdout if recover returns non-nil 2023-07-14 16:45:51 -07:00
Eggbertx
fb2e68c767 Remove no longer used request and writer args from file ban functions 2023-07-14 16:43:44 -07:00