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

138 commits

Author SHA1 Message Date
Eggbertx
7580c965dc Properly handle ban_ip for file bans 2024-02-19 17:36:00 -08:00
Eggbertx
7a37003be2 Move fingerprinting/SQL work to uploads package 2024-02-19 16:58:40 -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
2a49de7575 Audit potential bugs pointed out by Deepsource 2024-02-07 15:15:56 -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
3fd9778427 Simplify querying for building.Post 2024-01-09 13:51:24 -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
e968dc875a Finish browser-based template editor, resolves issue #90 2023-12-26 17:02:09 -08:00
Eggbertx
7e07e24f16 Add template loading to the templates manage action 2023-12-21 15:55:29 -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
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
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
c07d610ee5 Move duration parsing string to a separate repo 2023-08-28 12:33:43 -07:00
Eggbertx
c573e26399 Add fixthumbnails manage function 2023-07-12 10:56:03 -07:00
Eggbertx
36ce238dff Remove extraneous prints 2023-06-16 09:54:52 -07:00
Eggbertx
a073aa49f3 Add dropdown item to ban post IP 2023-06-16 09:29:38 -07:00
Eggbertx
7f07139430 Add manage page for viewing the main log (non-access) 2023-06-14 14:37:45 -07:00
Eggbertx
76d6c02045 Add password updating 2023-06-07 14:18:02 -07:00
Eggbertx
d92ec3a647 Add password confirmation box 2023-06-06 14:29:16 -07:00
Eggbertx
9b61dde7c8 Make actino registration functions for individual staff roles private 2023-06-06 13:44:42 -07:00
Eggbertx
b845f52f64 Properly handle accessing all-access staff page when logged out 2023-06-06 13:37:49 -07:00
Eggbertx
deecf483ac Show error page if user enters invalid password 2023-06-06 13:02:17 -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
5e8804b9d2 Log error in rebuild boards action if it fails 2023-05-13 09:07:48 -07: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
c6c425011f Make automatic filename/checksum filtering via dropdown work 2023-04-28 14:44:00 -07:00
Eggbertx
3d18e593fd Split actions.go by rank requirement for staff 2023-04-13 10:45:30 -07:00
Eggbertx
4247c1f56e use current time for ban appeal and expiration timestamps to avoid timestamp issues 2023-03-30 08:23:52 -07:00
Eggbertx
5956223d1f Build thread page on attribute change 2023-02-03 12:58:47 -08:00
Eggbertx
94ca564e06 Rebuild the board page if a thread attribute was changed 2023-02-03 12:48:50 -08:00
Eggbertx
b8f53cb029 Fix thread/top post inconsistency in threadattrs manage page 2023-02-03 12:03:12 -08:00
Eggbertx
78c510c881 Properly show an error message if an invalid board is requested in threadattrs 2023-02-02 11:27:33 -08:00
Eggbertx
34cab06311 Add ability to update thread attributes from manage page 2023-02-02 11:12:39 -08:00
Eggbertx
0f0c9362eb Add thread attributes manage page 2023-01-28 15:23:44 -08:00
Eggbertx
90065cf8fa Add lua functions for getting configuration, registering manage page, and loading/parsing templates 2023-01-06 20:13:58 -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
64a0f947a7 Add event trigger for incoming uploads, and a sample usage in Lua 2023-01-06 00:02:15 -08:00