1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-25 05:36:22 -07:00
Commit graph

52 commits

Author SHA1 Message Date
Eggbertx
c943cdef6a Get the internal thread and treat threadid as op, properly attach upload to post 2022-11-28 17:04:41 -08:00
Eggbertx
6c2931db65 More de-deprecation stuff, also improve error logging 2022-11-28 12:29:15 -08:00
Eggbertx
4fdd9cfdf1 Fix issue with it not responding to post requests 2022-11-23 10:12:28 -08:00
Eggbertx
34688190e2 Update IP ban interface for new gcsql API 2022-11-16 15:11:55 -08:00
Eggbertx
b16fdc81b8 Fix building errors for de-deprecation 2022-11-09 10:15:37 -08:00
Eggbertx
f5337896b2 Finish migrating posting/post.go 2022-11-07 16:56:50 -08:00
Eggbertx
585c54c772 Add file checksum verification/ban 2022-11-07 16:37:53 -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
912bde25af Make post formatting functions comaptible with de-deprecated code 2022-11-01 08:13:09 -07:00
Eggbertx
45e2a76473 Add top post code, post insertion code, and captcha de code
TODO: revisit captcha to make it less clunky
2022-10-31 12:50:08 -07:00
Eggbertx
e789b08492 de-deprecate pkg/building 2022-10-31 12:41:17 -07:00
Eggbertx
fb71d95b5f Make thread moving work 2022-09-28 10:25:10 -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
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
fbfc2a1435 Properly check the post cooldown 2022-08-18 16:48:21 -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
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
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
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
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