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
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
3d18e593fd Split actions.go by rank requirement for staff 2023-04-13 10:45:30 -07:00
Eggbertx
f7da3ad9f5 Add request for random banner to server, add code for frontend to use it 2023-04-10 15:13:26 -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
9f7d5ad3ac Add function for checking default values with generics 2023-04-03 14:20:28 -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
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
3e9979e5d6 Fix exif stripping configuration (exiftool not yet used) 2023-03-19 16:56:26 -07:00
Eggbertx
637c357bf3 rename struct ErrInvalidValue to InvalidValueError, remove unused function GochanConfig.ToMap()
Also check exiftool path in ValidateValues if relevant settings are set
2023-03-19 16:23:39 -07:00
Eggbertx
0ec36c2840 un-disable the code bbcode tag 2023-02-11 14:36:25 -08:00
Eggbertx
017cdd4459 Add thread status icons to catalog 2023-02-09 12:44:17 -08:00
Eggbertx
f82b9761f8 Make stickied threads show up on top 2023-02-09 11:25:21 -08:00
Eggbertx
371372645c Show proper omitted post count, add omitted image count to board page
Also show sticky icon for stickied threads, though stickying hasn't been fully implemented yet
2023-02-09 09:55:50 -08:00
Eggbertx
69320d5df4 Add lock/unlock option to post dropdown 2023-02-08 12:40:36 -08: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
8f21f97f9d Show lock icon by locked threads 2023-02-03 10:31:47 -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
fe201ad2ac Sort posts on catalog by last_bump 2023-01-26 08:06:57 -08:00
Eggbertx
7e80580018 replace ! operator with = FALSE since some SQL providers don't support ! 2023-01-24 09:38:26 -08:00
Eggbertx
690c77d2de Add code for pruning old threads to be run when the board is built 2023-01-19 12:31:08 -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
3d430e7d83 Remove the no-longer-used PostsPerThreadPage setting 2023-01-09 09:05:18 -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
Eggbertx
05e01c6366 Add a simple event system and the ability for lua plugins to register and trigger events 2023-01-05 21:31:28 -08:00
Eggbertx
7a3e598a4f re-add webroot to consts.js building 2023-01-05 16:39:08 -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
aba84ceed2 Use router package instead of GET parameter for manage pages 2023-01-04 15:33:50 -08:00
Eggbertx
fca810515a Fix IP search mod tool 2023-01-01 13:52:54 -08:00
Eggbertx
0548752661 Exit if logs weren't opened correctly, also add error checking for uid and gid 2022-12-31 17:57:43 -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
d0e59b4580 Update gcplugin package for new API, use luar to pass zerolog logs to VM 2022-12-30 15:27:19 -08:00
Eggbertx
c38816b5df Properly create plugins table on startup, close Lua state on end 2022-12-29 16:58:49 -08:00
Eggbertx
a0a3ed46c8 Add ./sql/ to search for db initialization files 2022-12-29 16:19:15 -08:00