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

28 commits

Author SHA1 Message Date
Eggbertx
5bfbeabf13 Fix a bunch of large value copies as suggested by deepsource 2022-05-12 11:28:15 -07:00
Eggbertx
1a104391ec Redirect to referer on report submission 2022-04-05 21:51:08 -07:00
Eggbertx
1848e2f073 Add function for handling reports
(still needs a lot of work)
2022-03-20 23:01:18 -07: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
a4149d4c5d Separate post into separate template 2022-01-27 21:02:37 -08:00
Eggbertx
9e82333c47 (re)add board creation related to issue #51 2022-01-16 13:30:33 -08:00
Eggbertx
62a31e651e Add utility function for getting file parts 2021-12-15 23:42:07 -08:00
Eggbertx
77380750ae Finish separating config into separate structs 2021-07-11 16:30:39 -07:00
Eggbertx
dfdb926d71 Add partially refactored configuration changes 2021-07-11 11:51:29 -07:00
Eggbertx
c385a39bec Add config option to set max age for staff cookies
resolves  #41
2021-03-26 11:10:05 -07:00
Eggbertx
2382b30af1 Move minifier functions to serverutil package
gcutil should only be used for stuff that doesn't require configuration
2021-03-25 14:42:46 -07:00
Eggbertx
8ccd217ff0 Add mp4 support 2021-03-24 11:44:50 -07:00
Eggbertx
cb7913398c Make config loading more flexible and powerful
Improve value validation, allow for defaults and set critical fields
2021-03-02 17:42:07 -08:00
Eggbertx
e375750e97 Replace strings.ReplaceAll with strings.Replace for compatibility 2020-07-27 18:19:56 -07:00
Eggbertx
55317504a1 Fix anti-patterns pointed out by DeepSource
But not the switch fallthroughs/expression lists, there's no benefit
2020-07-09 15:54:31 -07:00
Eggbertx
497a3925e0 Delete post upload(s) if we get an error 2020-07-09 13:08:24 -07:00
comraderat
83d9bbafdf Fix bug not reparsing html 2020-07-08 21:00:46 +02:00
Eggbertx
e6838817fd Replace GcError struct usage with builtin error
Creating it was probably a bad idea and not worth the trouble.
2020-06-06 09:28:45 -07:00
Eggbertx
d1bcaa52b4 Fix crash when checking/printing error in posting.MakePost 2020-06-03 14:00:55 -07:00
Eggbertx
75dbaa4676 Add command line option to rebuild templates on startup 2020-06-03 12:54:12 -07:00
Eggbertx
feec3d87e8 replace (most) uses of builtin error with *gcutil.GcError 2020-05-28 12:49:41 -07:00
comraderat
193913bcb4 Changes formatted message to template.HTML 2020-05-24 18:56:24 +02:00
comraderat
e28671ecc2 Fix errors 2020-05-23 20:40:48 +02:00
comraderat
2e00b11434 Fix some errors 2020-05-23 19:40:29 +02:00
comraderat
68059c28eb Implement some more queries 2020-05-11 15:20:49 +02:00
comraderat
7e4ea59dbe Implement queries, remove unused fields in BanInfo 2020-05-08 13:06:34 +02:00
Eggbertx
d1292bd9fe refactor/reorganize gochan's source code into subpackages
Also use Go version 1.11 in vagrant for module support
2020-04-29 17:44:29 -07:00