1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-26 14:46:24 -07:00
Commit graph

192 commits

Author SHA1 Message Date
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
Eggbertx
f3add8bb89 Use more standardized file modes 2022-12-31 17:29:57 -08:00
Eggbertx
76a4f92e18 Make config.Username useful (applies given username ownership to files) 2022-12-31 01:51:14 -08:00
Eggbertx
820f5b993b Fix thread upload deletion 2022-12-24 20:53:56 -08:00
Eggbertx
8b29c4b0e0 fix cookie encoding/decoding 2022-12-24 16:15:09 -08:00
Eggbertx
e87915ecb9 Use more transactions, and replace getNextFreeID with getLatestID 2022-12-24 12:25:23 -08:00
Eggbertx
51d475c48a Prevent QR OPs from slipping through the captcha cracks 2022-12-20 15:08:08 -08:00
Eggbertx
9e13eae658 Add configuration option to only require CAPTCHA test for new threads 2022-12-20 14:29:27 -08:00
Eggbertx
202ded163a Reject post if it is missing both an upload and a comment 2022-12-20 13:37:54 -08:00
Eggbertx
6e81fc3b98 Add configuration option to require a file for new threads
(Wasn't this here before at some point?)
2022-12-20 13:33:33 -08:00
Eggbertx
89457e47f7 Replace internal self-generated captcha tests with hcaptcha 2022-12-20 13:13:08 -08:00
Eggbertx
c180fec5eb Escape invalid bytes in cookies 2022-12-20 10:30:20 -08:00
Eggbertx
f7ca807144 Add ability to replace file uploads 2022-12-17 16:30:52 -08:00
Eggbertx
bd69e27bea Use the correct cooldown config fields 2022-12-14 12:41:25 -08:00
Eggbertx
d1f7769cc7 More postgres fixes (building, deletion) 2022-12-13 16:23:16 -08:00
Eggbertx
ff32f13bf5 Fix cooldown checking for databases without any posts 2022-12-08 13:19:03 -08:00
Eggbertx
f38a648f52 Replace references to filename and username wildcard with regex 2022-12-08 08:29:49 -08:00
Eggbertx
8edb0cfeb4 Show an error if the post has a banned filename, checksum, or name 2022-12-06 07:58:51 -08:00
Eggbertx
17a326bc17 Make appeals work 2022-11-29 13:10:40 -08:00
Eggbertx
7e5a78fa8c Make IP ban page template compatible with new API 2022-11-29 12:06:08 -08:00
Eggbertx
c943cdef6a Get the internal thread and treat threadid as op, properly attach upload to post 2022-11-28 17:04:41 -08:00
Eggbertx
6c2931db65 More de-deprecation stuff, also improve error logging 2022-11-28 12:29:15 -08:00
Eggbertx
4fdd9cfdf1 Fix issue with it not responding to post requests 2022-11-23 10:12:28 -08:00
Eggbertx
34688190e2 Update IP ban interface for new gcsql API 2022-11-16 15:11:55 -08:00
Eggbertx
b16fdc81b8 Fix building errors for de-deprecation 2022-11-09 10:15:37 -08:00
Eggbertx
f5337896b2 Finish migrating posting/post.go 2022-11-07 16:56:50 -08:00
Eggbertx
585c54c772 Add file checksum verification/ban 2022-11-07 16:37:53 -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
912bde25af Make post formatting functions comaptible with de-deprecated code 2022-11-01 08:13:09 -07:00
Eggbertx
45e2a76473 Add top post code, post insertion code, and captcha de code
TODO: revisit captcha to make it less clunky
2022-10-31 12:50:08 -07:00