Eggbertx
7368fca829
Remove unused intPtrToBoardDir template function
2025-03-31 22:04:17 -07:00
Eggbertx
37c73fae0d
Show link to embed video on recent posts page, show thumbnail on front page
2025-03-29 23:39:42 -07:00
Eggbertx
407eeb1a08
Add more testing to front page and header tests
2025-03-29 21:49:04 -07:00
Eggbertx
d7c6e11dd0
Add unit tests for page header and footer
2025-03-29 21:20:16 -07:00
Eggbertx
67bbb4125c
refactor captcha handling, simplify HTML template testing with goquery
2025-03-29 20:19:45 -07:00
Eggbertx
47afdd0ca8
Use zerolog for logging to console (with few exceptions) for consistency
2025-03-29 14:04:43 -07:00
Eggbertx
48fb11a199
Treat recent posts with embed as if they have no thumbnail/upload on front page
2025-03-29 12:59:16 -07:00
Eggbertx
a47e03def4
Add text formatting classes and update report handling logic to dismissing in bulk
2025-03-28 21:55:15 -07:00
Eggbertx
4aab676c67
Improve request validation and logging, implement cleanup for reports of deleted posts.
2025-03-28 17:34:00 -07:00
Eggbertx
faf1457c36
Remove mostly unused Verbose config field, add LogLevel
2025-03-25 21:55:21 -07:00
Eggbertx
9915ed3975
Add global style including and script loading
2025-03-16 17:58:16 -07:00
Eggbertx
74c697d2ec
Move embedMedia definition to building, increase embed size
2025-03-16 15:12:23 -07:00
Eggbertx
ace940eaa8
Return an error in embedMedia template function for invalid embed ID and execution failures
2025-03-16 13:47:25 -07:00
Eggbertx
045311f675
Use UploadPath for embedded media URL, refer to it as "media" instead of "video" (since audio could be embedded as well)
2025-03-16 13:16:29 -07:00
Eggbertx
4929366f82
Update templates with embed stuff, add example URL matchers
2025-03-15 23:52:13 -07:00
Eggbertx
2facfe68fc
Don't insert upload in AttachEmbed, since it gets inserted later
2025-03-15 22:28:51 -07:00
Eggbertx
309c8cede9
Add more testing stuff, start splitting up embed matching and rendering
2025-03-15 21:33:25 -07:00
Eggbertx
e82d83819f
Merge remote-tracking branch 'origin/master' into audit-config-fields
2025-03-13 12:40:13 -07:00
Eggbertx
653bb2c020
Add embed matching to config
2025-03-13 12:39:10 -07:00
Eggbertx
23b5d3c0fb
Implement embed matchers for URL validation and embedding templates
2025-03-10 23:49:19 -07:00
Eggbertx
8fe4c25938
Check for NSFW tags and show an error if they are not allowed on the board (or site)
2025-03-09 14:14:35 -07:00
Eggbertx
a8207b77d7
Update test cases with spoiler images enabled
2025-03-09 13:32:57 -07:00
Eggbertx
54a6f25476
Add hash tag block
2025-03-09 01:35:43 -08:00
Eggbertx
9a1784dbbe
Show error if spoilered file is uploaded on a board (or site) that doesn't allow it
2025-03-08 19:00:25 -08:00
Eggbertx
8ec6b64b1b
Merge branch 'audit-config-fields'
2025-03-07 23:24:57 -08:00
Eggbertx
e27d020d54
Implement lockdown mode, re-add message length checking
2025-03-07 23:23:26 -08:00
Eggbertx
3b12039f38
Add warning event to gcutil.LogRequest, improve error messages
2025-03-07 23:14:27 -08:00
Eggbertx
7b86650733
Move Lockdown fields to BoardConfig
2025-03-07 16:48:34 -08:00
Eggbertx
6911682d84
Redirect to manage action (if specified) on login
2025-03-07 16:13:57 -08:00
Eggbertx
82099a76a7
Use CookieMaxAge when making a post
2025-03-03 20:58:05 -08:00
Eggbertx
b0e88c551d
Return error in InitConfig instead of exiting outright if something goes wrong
2025-03-03 17:16:48 -08:00
Eggbertx
b9ca2dd8e7
Finish adding documentation comments for config struct fields
2025-03-02 17:18:34 -08:00
Eggbertx
cd82fba22f
Add PostConfig documentation
2025-03-02 16:59:56 -08:00
Eggbertx
173546b401
Add more documentation (and test documentation updater)
2025-03-02 16:53:29 -08:00
Eggbertx
1df4fb2efc
Add board cooldowns doc comments, clean up geoip comments, and (almost) finish implementing gochan-gendoc
2025-03-02 14:48:12 -08:00
Eggbertx
caaeef2942
Don't fail a test if the current directory is /vagrant (assumed to be testing in a VM)
2025-03-02 13:41:12 -08:00
Eggbertx
e4d2b51456
Make the deprecated fields ListenIP and SiteDomain empty if they are used as an alias
2025-03-02 12:57:22 -08:00
Eggbertx
94f2deadec
Add more comments to config struct fields, rename ListenIP to ListenAddress and SiteDomain to SiteHost, since they are more accurate.
2025-03-02 12:44:42 -08:00
Eggbertx
f27deaad34
Start adding more config struct field comments for documentation
2025-02-26 00:53:06 -08:00
Eggbertx
46a692767c
Validate updated rank value
2025-02-25 22:55:25 -08:00
Eggbertx
b2c5a2d737
Clean up staff edit page
2025-02-25 22:47:42 -08:00
Eggbertx
c5aa7a438d
Merge branch 'master' into staff-rank-update
2025-02-24 17:28:09 -08:00
Eggbertx
0ec52bfdf1
Improve dice roll parsing
2025-02-19 17:10:57 -08:00
Eggbertx
0244811a7f
Fix more deepsource issues
2025-02-18 20:33:33 -08:00
deepsource-autofix[bot]
39fdc0566f
refactor: fix unused method receiver
...
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep
the same method signature, omit the receiver name or '_' as it is unused.
2025-02-19 04:05:57 +00:00
deepsource-autofix[bot]
c842ca53f5
refactor: unused parameter should be replaced by underscore
...
Unused parameters in functions or methods should be replaced with `_`
(underscore) or removed.
2025-02-19 03:57:55 +00:00
Eggbertx
74f9e415b4
Fix deepsource issues
2025-02-18 19:50:41 -08:00
Eggbertx
5ae229d61e
Add LoadPlugins test
2025-02-18 13:16:07 -08:00
Eggbertx
aba2c68221
Use h1 instead of div for lightbox title, footer element instead of div#footer
2025-02-18 12:59:20 -08:00
Eggbertx
e0ee76bce1
Add Lua tests for url module provider
2025-02-18 11:56:09 -08:00