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

190 commits

Author SHA1 Message Date
Eggbertx
ada23ffed8 Print a separate string if the database was updated instead of migrated 2023-04-07 15:11:02 -07:00
Eggbertx
17c28e5ebe Move database schema updating to gochan-migration 2023-04-07 14:34:28 -07:00
Eggbertx
29f54a6064 parse command line flags in gochan-migration before loading config 2023-03-29 09:35:46 -07:00
Eggbertx
69654caeb4 Make thread movement use proper password, improve logging 2023-02-15 11:53:00 -08:00
Eggbertx
46db3e0abc Fix edit post not letting non-privileged users edit their posts 2023-02-11 15:33:15 -08:00
Eggbertx
f82b9761f8 Make stickied threads show up on top 2023-02-09 11:25:21 -08:00
Eggbertx
bef2e1875b Add GET handler for /post, redirect to site root 2023-02-03 08:02:24 -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
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
6af9f7155f Put fmt.Println initial error reporting before fatal logging,
also only call them if debug mode is not set (because logging is also printed to console if it is)
2023-01-05 16:55:27 -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
c38816b5df Properly create plugins table on startup, close Lua state on end 2022-12-29 16:58:49 -08:00
Eggbertx
820f5b993b Fix thread upload deletion 2022-12-24 20:53:56 -08:00
Eggbertx
ec34ff9f4a Make naming conventions in templates more consistent with Go conventions 2022-12-22 12:58:18 -08:00
Eggbertx
8a73e1aa13 Use raw message text in recent post query 2022-12-17 17:38:56 -08:00
Eggbertx
92924db1eb Fix deleted uploads not being unlinked when the post is edited 2022-12-17 17:28:31 -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
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
17a326bc17 Make appeals work 2022-11-29 13:10:40 -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
b69536b772 Add IP ban checking function 2022-11-02 16:26:15 -07:00
Eggbertx
fb708bb6f3 add some board info functions 2022-10-31 12:43:39 -07:00
Eggbertx
6567da3300 Add de-deprecation stuff (will not build yet) 2022-10-11 14:26:31 -07:00
Eggbertx
d23d8ccd8a Add selenium test for moving threads 2022-09-28 12:49:53 -07:00
Eggbertx
fb71d95b5f Make thread moving work 2022-09-28 10:25:10 -07:00
Eggbertx
2b12801c60 Add move thread page
Separate post move, edit, and deletion from server for better organization
2022-09-23 15:50:18 -07:00
Eggbertx
2c3429256f Separate access info into separate log file 2022-09-18 15:32:07 -07:00
Eggbertx
d2c5015714 Replace deprecated ioutil imports 2022-09-08 15:45:29 -07:00
Eggbertx
ce4893db39 Delete thread json file along with html file 2022-09-08 13:58:36 -07:00
deepsource-autofix[bot]
f639fdde6d
Fix unused method receiver 2022-09-04 21:57:01 +00:00
Eggbertx
ee61fcb30f Replace gclog/gzlog with structured logging via zerolog 2022-09-04 14:27:14 -07:00
Eggbertx
ffcf4a1e61 remove logging from gcsql except where necessary (it should be done elsewhere) 2022-09-03 14:51:37 -07:00
Eggbertx
9542949413 Remove file i/o from gcsql package for better organization 2022-09-03 14:13:49 -07:00
Eggbertx
9107269a39 Upgrade Go version in vagrant and Docker, readd sqlite3 for real this time
requires intervention for vagrant to add the updated Go repo
2022-08-30 11:30:59 -07:00
Eggbertx
35a4dfc7b1 Don't use gclog for gochan-migrate 2022-08-14 14:27:58 -07:00
Eggbertx
4c867d2180 use Header().Set instead of Header().Add for replacing HTTP headers 2022-08-05 15:26:22 -07:00
Eggbertx
84ad96e465 Add Board property to MessagePostContainer 2022-07-25 09:29:00 -07:00
Eggbertx
20fce2ab88 Leave a "File deleted" box on posts if only the file is deleted 2022-07-21 19:49:18 -07:00
Eggbertx
f483a2f958 Fix post editing 2022-07-18 16:54:29 -07:00
Eggbertx
f307fd2a5f Remove unused links from page footer 2022-07-18 16:20:31 -07:00
Eggbertx
0950a5320f Delete post element if dropdown delete action is used 2022-07-03 17:55:27 -07:00
Eggbertx
495399eae7 Add simple plugin loader
(though it doesn't do anything useful yet)
2022-06-01 14:17:27 -07:00
Eggbertx
5bfbeabf13 Fix a bunch of large value copies as suggested by deepsource 2022-05-12 11:28:15 -07:00
Eggbertx
cf5e1b95d7 Don't show Delete file on posts without uploads 2022-04-25 20:34:53 -07:00
Eggbertx
8e417c0640 Have returned JSON error show the given boardid 2022-04-24 17:26:56 -07:00
Eggbertx
fc2e181735 Add JSON serving for post deletion errors 2022-04-10 19:05:56 -07:00
Eggbertx
9cf9edebf7 move serveJSON to public function in serverutil 2022-04-10 16:01:42 -07:00