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

676 commits

Author SHA1 Message Date
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
bcad625368 Add filename and checksum ban creation and deletion from web interface
Related to issue #28
2022-09-15 22:50:45 -07:00
Eggbertx
943c0f6221 Add filebans staff action, related to issue #28
though currently it can only view, not add new bans
2022-09-15 21:37:56 -07:00
Eggbertx
d2c5015714 Replace deprecated ioutil imports 2022-09-08 15:45:29 -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
2ff9b0df83 Improve staff page logging, fix username getting 2022-09-03 16:19:31 -07:00
Eggbertx
17833e78ad remove more gclog calls from gcsql 2022-09-03 15:25:50 -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
5b5d5ab3ec Replace sqlmock with sqlite3 for unit testing gcsql package 2022-09-01 22:42:06 -07:00
Eggbertx
ec7b3901ed Remove extra debug printing string 2022-09-01 09:43:31 -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
3fa042167e Add sqlmock driver and schema initialization 2022-08-28 19:26:03 -07:00
Eggbertx
d5c9d4e657 Fix manage postinfo action 2022-08-28 11:55:08 -07:00
Eggbertx
36fbf6d45d Add IP search tool 2022-08-27 23:37:59 -07:00
Eggbertx
fbfc2a1435 Properly check the post cooldown 2022-08-18 16:48:21 -07:00
Eggbertx
4c4bbda60e Add missing argument to ExecSQL for post editing 2022-08-15 12:55:59 -07:00
Eggbertx
0e93ac8e1d add is_cleared to reports audit 2022-08-14 16:20:02 -07:00
Eggbertx
8284ecf9b9 Set is_cleared on report inserting to avoid "no default value" errors 2022-08-14 15:35:58 -07:00
Eggbertx
15bc585424 Use FALSE instead of 0 in gcsql.GetReports because Postgresql doesn't like it 2022-08-09 11:58:12 -07:00
Eggbertx
af93aff9fe Add the ability to edit and delete sections 2022-08-08 15:43:05 -07:00
Eggbertx
dc6cac7213 Add stuff to be able to create a board section from the web interface 2022-08-07 22:32:37 -07:00
Eggbertx
8e3a7c493a Add board sections template and action 2022-08-07 22:02:06 -07:00
Eggbertx
fc47afafb5 Add link back to staff dashboard 2022-08-01 16:08:57 -07:00
Eggbertx
c64103c6b5 Add report dismissal and ability to block reports for a post
Currently, only the admin is allowed to block reports
2022-07-27 11:19:03 -07:00
Eggbertx
326c95a39e Add reports manage page 2022-07-26 12:13:27 -07:00
Eggbertx
c64d7b16e8 Move internal report creation code to gcsql
Also insert the report's timestamp into the report audit table
2022-07-26 11:31:13 -07:00
Eggbertx
28a53add0a Show correct role on staff dashboard 2022-07-25 14:13:33 -07:00
Eggbertx
fc882639d2 Make wordfilters work, resolves issue #44 2022-07-25 10:12:01 -07:00
Eggbertx
84ad96e465 Add Board property to MessagePostContainer 2022-07-25 09:29:00 -07:00
Eggbertx
ee0910da78 Add action to delete wordfilter 2022-07-22 14:56:14 -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
9f5f5c697c Make wordfilter creation work 2022-07-21 16:11:23 -07:00
Eggbertx
462f1b3c6a Make wordfilter editing work 2022-07-21 15:50:38 -07:00
Eggbertx
97eaabeee3 Replace gcsql.NewWordFilter (stub function) with CreateWordFilter 2022-07-21 14:56:40 -07:00
Eggbertx
bd32c9ddfd Add function to get board-specific wordfilters and a function to apply wordfilters 2022-07-20 15:53:51 -07:00
Eggbertx
f483a2f958 Fix post editing 2022-07-18 16:54:29 -07:00
Eggbertx
c97aa9fdc7 Remove .log from end of log paths 2022-07-18 16:40:24 -07:00
Eggbertx
bc8e30828a Add function for getting the path relative to the site's WebRoot 2022-07-18 12:34:43 -07:00
Eggbertx
9d0c8d4149 Fix bug with thumbnails not being created even if image is bigger than a thumbnail
(bug introduced in commit 0415b3066a)
2022-06-25 18:20:25 -07:00
Eggbertx
0415b3066a If upload is gif and not bigger than a thumbnail, still create a thumbnail if it's animated 2022-06-18 12:49:12 -07:00
Eggbertx
703cd41c9c add config.SetVersion call to gcplugin.TestStructPassing 2022-06-01 15:33:46 -07:00
Eggbertx
7e87a9ec10 Test value modification with gcplugin.TestStructPassing 2022-06-01 15:05:26 -07:00
Eggbertx
a8ed56983f Remove unnecessary userdata object from gcplugin.TestStructPassing() 2022-06-01 14:39:52 -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
dd77ca9eff Use gzlog to rotate logs after they reach 1 MB
TODO: make the max log size configurable
2022-05-12 22:39:00 -07:00
Eggbertx
5bfbeabf13 Fix a bunch of large value copies as suggested by deepsource 2022-05-12 11:28:15 -07:00
Eggbertx
6d1e95b307 Set Content-Type in serverutil.ServeJSON and serverutil.ServeErrorPage 2022-04-24 17:13:00 -07:00