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

178 commits

Author SHA1 Message Date
Eggbertx
d2ace418fa Move default configuration values to a struct 2023-05-10 14:06:40 -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
f786ff4269 Update board configurations when the board array is reset 2023-04-10 08:31:27 -07:00
Eggbertx
b132c54789 Update README with more info on gochan-migration and MariaDB/MySQL
Also update the TODO list
2023-04-07 15:04:41 -07:00
Eggbertx
17c28e5ebe Move database schema updating to gochan-migration 2023-04-07 14:34:28 -07:00
Eggbertx
e14e1f176b Clean up connect.go a little and update version for release 2023-03-27 20:11:58 -07:00
Eggbertx
881a87c6b1 Fix alter table SQL statement in sqlite3 block
Also, add environment variable for installing mainline MySQL (instead of MariaDB) in vagrant
2023-03-27 19:51:34 -07:00
Eggbertx
353b5d7552 Alter table to fix MySQL collation wonkyness 2023-03-27 16:44:59 -07:00
Eggbertx
d2216d0cdf Add some compatibility fixes caused by unexpected differences between MariaDB and mainline MySQL 2023-03-27 15:35:26 -07:00
Eggbertx
f82b9761f8 Make stickied threads show up on top 2023-02-09 11:25:21 -08:00
Eggbertx
69320d5df4 Add lock/unlock option to post dropdown 2023-02-08 12:40:36 -08:00
Eggbertx
b8f53cb029 Fix thread/top post inconsistency in threadattrs manage page 2023-02-03 12:03:12 -08:00
Eggbertx
46452028af Make thread/board locks actually prevent posting 2023-02-02 12:25:27 -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
7e80580018 replace ! operator with = FALSE since some SQL providers don't support ! 2023-01-24 09:38:26 -08:00
Eggbertx
4f843d5431 (Re)add next and previous page links
Add not-yet-used function to remove old threads that are past the board's limit
Also add functions to simplify querying with transactions
2023-01-18 12:35:40 -08:00
Eggbertx
64a0f947a7 Add event trigger for incoming uploads, and a sample usage in Lua 2023-01-06 00:02:15 -08:00
Eggbertx
aba84ceed2 Use router package instead of GET parameter for manage pages 2023-01-04 15:33:50 -08:00
Eggbertx
a0a3ed46c8 Add ./sql/ to search for db initialization files 2022-12-29 16:19:15 -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
cad707baf6 Move board JSON data to separate struct 2022-12-20 16:04:47 -08:00
Eggbertx
f7ca807144 Add ability to replace file uploads 2022-12-17 16:30:52 -08:00
Eggbertx
51f00a7983 Fix post editing 2022-12-17 13:34:00 -08:00
Eggbertx
ab1cbf8831 Properly use sections' hidden attribute 2022-12-17 13:01:29 -08:00
Eggbertx
2c54276b51 replace some more SQL ints with proper bools 2022-12-16 18:08:59 -08:00
Eggbertx
34c03da674 Fix created boards not getting the correct ID if a board was deleted 2022-12-16 16:17:13 -08:00
Eggbertx
61ea25f12d better handling for timestamps between SQL DBtypes 2022-12-15 16:41:05 -08:00
Eggbertx
976d9ad53a Update board in database, fix recent posts error in Postgres 2022-12-14 15:40:56 -08:00
Eggbertx
d1f7769cc7 More postgres fixes (building, deletion) 2022-12-13 16:23:16 -08:00
Eggbertx
813b194f27 Start readding postgresql and sqlite support broken by deprecation fixing 2022-12-13 12:44: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
598c5a04ff Add name ban manage page 2022-12-06 16:52:16 -08:00
Eggbertx
f2c3a6b1ac Update boardsections staff action for new API 2022-12-05 16:40:56 -08:00
Eggbertx
dec2609591 Make board creation work with new API 2022-12-05 16:18:19 -08:00
Eggbertx
538050068f Add appeals management page 2022-11-30 10:20:31 -08:00
Eggbertx
17a326bc17 Make appeals work 2022-11-29 13:10:40 -08:00
Eggbertx
221d8ed188 Properly sort threads on board page 2022-11-29 09:57:21 -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
8bc5e2148b Make board pages, thread pages, and catalogs render properly 2022-11-28 16:15:20 -08:00
Eggbertx
29c7493715 Make catalog use new post type 2022-11-28 14:00:54 -08:00
Eggbertx
2e732de771 Remove erroneous deprecated import 2022-11-28 12:39:50 -08:00
Eggbertx
6c2931db65 More de-deprecation stuff, also improve error logging 2022-11-28 12:29:15 -08:00
Eggbertx
e6fca7e4c6 Add ability to create new filename and file checksum bans with new api 2022-11-20 16:05:48 -08:00
Eggbertx
5b8c0110af Make file ban deletion work 2022-11-18 16:57:23 -08:00
Eggbertx
adb032d2ed readd filename banning page
Related to issue #28
2022-11-18 16:47:25 -08:00
Eggbertx
9d9a978e68 Add ban deactivateion, with auditing, related to issue #28 and issue #31 2022-11-18 15:42:58 -08:00