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
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
Eggbertx
9cf9edebf7 move serveJSON to public function in serverutil 2022-04-10 16:01:42 -07:00
Eggbertx
1a104391ec Redirect to referer on report submission 2022-04-05 21:51:08 -07:00
Eggbertx
6dea1fab31 Update build.py and gochan to better follow the FHS
NOTE NOTE NOTE NOTE NOTE: You may need to update your configuration
See https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
2022-04-03 16:02:07 -07:00
Eggbertx
1848e2f073 Add function for handling reports
(still needs a lot of work)
2022-03-20 23:01:18 -07:00
Eggbertx
42a80fec64 Start using transactions in gochan-migrate 2022-03-06 10:28:31 -08:00
Eggbertx
8ec05c7efe Move SQL keyword replacement stuff to its own function 2022-02-24 17:37:41 -08:00
Eggbertx
d0a6341bf6 Add support for sql.Tx transactions to gcsql 2022-02-24 17:26:29 -08:00
Eggbertx
60fd5451bf Execute board creation SQL before creating dir, resolves issue #27 2022-02-24 17:21:33 -08:00
Eggbertx
8840693a8b Add function to check if Pre2021 migration is already complete
(still need to do kusaba x and tinyboard)
2022-02-19 14:55:45 -08:00
deepsource-autofix[bot]
c68a2ce726
Function call can be replaced with helper function 2022-02-13 22:06:50 +00:00
Eggbertx
3df8dbe88d Alter DBPREFIXwordfilters table if needed on startup 2022-02-05 14:18:38 -08:00
Eggbertx
03e74ea8a4 Use constants for version comparison 2022-02-01 21:03:07 -08:00
Eggbertx
2b4e1bfc51 Replace sql.Drivers call with manual array
add GochanConfig testing property that prevents writing if true
2022-02-01 16:41:05 -08:00
Eggbertx
b85c943cf5 Add manage page to clear all login sessions for the current user at /manage?action=clearmysessions
Resolves issue #40
2022-01-31 22:35:47 -08:00
Eggbertx
f85959c8e3 Add wordfilters manage page 2022-01-31 09:47:19 -08:00
Eggbertx
b180db94dc Make gcsql package more organized 2022-01-30 18:15:15 -08:00
Eggbertx
3addaf57d7 Update WordFilter struct to work with modified table 2022-01-30 17:19:54 -08:00
Eggbertx
52c3ece854 Modify wordfilter table and add hacky db update function
When I get around to actually making gochan-migrate useful, that function will be moved there
2022-01-30 15:56:16 -08:00
Eggbertx
8e706a313c Make template for recent posts page
Also make manage page h1 headers automatic
2022-01-29 23:47:13 -08:00
Eggbertx
33388612d7 Add modifyable title for mgmt pages 2022-01-29 20:46:00 -08:00