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

121 commits

Author SHA1 Message Date
Eggbertx
2007b90556 Add basic geoip detection to posts, add image to post flag template 2024-01-20 22:41:40 -08:00
Eggbertx
24ff232c59 Add flag and country to post queries 2024-01-17 15:55:41 -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
d294462968 Fix SQL string replacer messing with prepared statements in Postgres 2024-01-02 17:02:42 -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
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
5980283218 Add MaxMind GeoIP loading 2023-12-06 14:54:51 -08:00
Eggbertx
9688082339 Move Lua plugin loaders to their respective gochan packages 2023-10-24 16:27:27 -07:00
Eggbertx
9a8cd64d2d Move Akismet checking to plugin 2023-10-20 16:49:46 -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
Eggbertx
a0c0466725 Make thumbnail extension determining more dynamic, move to uploads pkg 2023-07-14 11:04:46 -07:00
Eggbertx
b0e81aac99 Don't depend on each file handler function to get file size 2023-07-14 08:38:21 -07:00
Eggbertx
cfbe7a8ffb Make upload extensions registerable by plugins 2023-07-13 09:01:28 -07:00
Eggbertx
4078197b8d Move upload handling to subpackage 2023-07-12 14:20:41 -07:00
Eggbertx
c573e26399 Add fixthumbnails manage function 2023-07-12 10:56:03 -07:00
Eggbertx
4264b8eeec Set Content-Type header to application/json when a post is submitted 2023-06-22 10:46:04 -07:00
Eggbertx
7c116dafc6 Backend: Return JSON when post is submitted via QR
Frontend: request thread and trigger update from returned JSON
2023-06-16 12:06:26 -07:00
Eggbertx
8014aaf4fb Prevent post from still being inserted if an error was encountered during upload 2023-06-15 13:45:32 -07:00
Eggbertx
20ba75cd5d Use ServeError instead of ServeErrorPage when handling captcha request errors 2023-06-15 13:28:05 -07:00
Eggbertx
d62520591a Use ServeError instead of ServeErrorPage when handling upload errors 2023-06-15 12:15:12 -07:00
Eggbertx
b1d182b4eb Treat recover data as string in MakePost log 2023-06-15 11:41:19 -07:00
Eggbertx
1276b3524a Add TLD checking plugin 2023-06-14 13:31:29 -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
Eggbertx
381dd42a28 Prevent applying link to the argument of a url bbcode tag 2023-06-09 13:44:33 -07:00
Eggbertx
37ba7ccd6a Render URLs as links 2023-06-09 10:50:11 -07:00
Eggbertx
51832082a9 Use testify assertions in test functions 2023-06-09 10:15:41 -07:00
Eggbertx
0174cbf1ec Delete the post if an issue occured attaching the upload 2023-06-05 12:35:11 -07:00
Eggbertx
6edca0edee Add error return value to event function 2023-06-02 15:16:17 -07:00
Eggbertx
de078c3065 Simplify adding custom thumbnails 2023-06-02 12:52:18 -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
33371d3e86 Recover and log stack trace if panic is called in post or manage handler 2023-05-02 14:39:31 -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
d33b64cf95 remove tick printing in temp cleaner 2023-04-14 13:32:17 -07:00
Eggbertx
522783e103 Clean up temp post cleaner 2023-04-14 12:41:06 -07:00
Eggbertx
4420011125 Fix thumbnailing for very very short videos 2023-04-14 12:17:09 -07:00
Eggbertx
423dd25713 Correct extensions for video uploads (missing period at beginning) 2023-04-14 08:46:24 -07:00
Eggbertx
eef1599024 Organize thumbnailing-specific functions into their own source file 2023-04-14 08:28:23 -07:00
Eggbertx
623e2f4352 Add a list of events for reference.
Also have it trigger an event when an upload is written to the disk and log warnings if an event recovers from panic()
2023-04-13 15:15:29 -07:00
Eggbertx
1968cb77d2 Fix postref hyperlinks being formatted incorrectly 2023-04-13 10:50:19 -07:00
Eggbertx
0ec36c2840 un-disable the code bbcode tag 2023-02-11 14:36:25 -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
78feba0994 Add skipcq for some deepsource issues that are there for a reason 2023-01-04 23:40:35 -08:00
Eggbertx
43d941c837 Replace all usage of webroot template variable with webPath function 2023-01-04 23:13:59 -08:00