1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-19 20:56:23 -07:00
Commit graph

246 commits

Author SHA1 Message Date
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
Eggbertx
1be572dc40 Add filename truncating template function 2022-01-27 21:35:28 -08:00
Eggbertx
a4149d4c5d Separate post into separate template 2022-01-27 21:02:37 -08:00
Eggbertx
8fe0ed3e52 Add Windows 9x theme (unfinished) 2022-01-16 21:13:56 -08:00
Eggbertx
67df39ffd9 Fix board editing, resolves #51 2022-01-16 14:38:57 -08:00
Eggbertx
656c2a3046 Fix board deletion and partially fix modification 2022-01-16 14:11:55 -08:00
Eggbertx
9e82333c47 (re)add board creation related to issue #51 2022-01-16 13:30:33 -08:00
Eggbertx
a0966925cb Rewrite board edit template, related to issues #51 and #52 2022-01-15 21:20:43 -08:00
Eggbertx
7e13a32ec3 Add board config to all templates using the standard header
Also remove commented migration lines in build.py
2022-01-09 23:09:44 -08:00
Eggbertx
f820de079a Make the staff dashboard page useful 2022-01-07 14:44:42 -08:00
Eggbertx
b2318af7a3 Use generic page header for manage pages, add login template 2022-01-04 17:48:46 -08:00