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

213 commits

Author SHA1 Message Date
Eggbertx
4917fdf3da Separate template functions 2024-03-26 17:49:22 -07:00
Eggbertx
09dfa2c3da Move init functions that only use public functions to dedicated subdirectories 2024-03-26 17:10:33 -07:00
Eggbertx
90b98c76de Create event for reloading board and section arrays 2024-03-13 14:58:22 -07:00
Eggbertx
4b5ea350eb Start moving template functions to their respective packages 2024-03-13 13:41:15 -07:00
Eggbertx
8404e3834e Add image and video thumbnail fingerprint checking on post attempt 2024-02-27 20:47:12 -08:00
Eggbertx
7580c965dc Properly handle ban_ip for file bans 2024-02-19 17:36:00 -08:00
Eggbertx
f250a5a356 Add flag and country to base post query 2024-02-19 17:05:56 -08:00
Eggbertx
4d187a27c8 Add fingerprinting stuff to file bans form 2024-02-18 16:42:27 -08:00
Eggbertx
5e7a648e37 Start adding ahash fingerprinting support 2024-02-12 15:22:58 -08:00
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
1deec0e462 Add country and flag columns to DB version 3 schema 2024-01-12 15:51:05 -08:00
Eggbertx
9352f0b611 Fix prefix not being applied in DB update 2024-01-09 21:45:39 -08:00
Eggbertx
0e34698257 Add more Postgres db migration for IP -> INET, split dbtypes into their own files 2024-01-09 13:11:22 -08:00
Eggbertx
d294462968 Fix SQL string replacer messing with prepared statements in Postgres 2024-01-02 17:02:42 -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
28963eb813 Add IP Range parsing, start working on adding range bans 2023-12-28 00:36:24 -08:00
Eggbertx
8e9543970a Remove "Verbosity" config field and rename "DebugMode" to "Verbose" for enabling command line output on errors 2023-12-27 17:07:33 -08:00
Eggbertx
7e07e24f16 Add template loading to the templates manage action 2023-12-21 15:55:29 -08:00
Eggbertx
a8436c5ee4 Fix some issues reported by DeepSource 2023-12-19 14:33:40 -08:00
Eggbertx
9688082339 Move Lua plugin loaders to their respective gochan packages 2023-10-24 16:27:27 -07:00
Eggbertx
1dabea35df Add ban_ip lua function 2023-10-24 15:22:41 -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
cf11d1a490 Show bans in descending order 2023-08-18 08:55:27 -07:00
Eggbertx
cc76b25a8d Move SQL driver imports to gcsql package, add SQL connection time limits
7cf5482876/README.md (important-settings)
2023-08-18 08:33:50 -07:00
Eggbertx
a0c0466725 Make thumbnail extension determining more dynamic, move to uploads pkg 2023-07-14 11:04:46 -07:00
Eggbertx
c573e26399 Add fixthumbnails manage function 2023-07-12 10:56:03 -07:00
Eggbertx
a073aa49f3 Add dropdown item to ban post IP 2023-06-16 09:29:38 -07:00
Eggbertx
d62520591a Use ServeError instead of ServeErrorPage when handling upload errors 2023-06-15 12:15:12 -07:00
Eggbertx
8b42d4102e Don't double-log if an event recovered from a panic 2023-06-12 08:50:45 -07:00
Eggbertx
76d6c02045 Add password updating 2023-06-07 14:18:02 -07:00
Eggbertx
6edca0edee Add error return value to event function 2023-06-02 15:16: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
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