summaryrefslogtreecommitdiff
path: root/internal/middleware/nollamas_test.go
diff options
context:
space:
mode:
authorLibravatar kim <grufwub@gmail.com>2025-05-07 11:59:39 +0000
committerLibravatar kim <gruf@noreply.codeberg.org>2025-05-07 11:59:39 +0000
commit4c96e2571db177377e6346359ccec7cf1b8299cb (patch)
tree1f3a9259a4a9491b1efb392265c508295917e94a /internal/middleware/nollamas_test.go
parent[bugfix] Fix indentation on multi-line alt text in web view (#4149) (diff)
downloadgotosocial-4c96e2571db177377e6346359ccec7cf1b8299cb.tar.xz
[feature] make nollamas difficulty configurable (#4119)
Makes the NoLLaMas proof-of-work scraper deterrence difficulty configurable. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4119 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/middleware/nollamas_test.go')
-rw-r--r--internal/middleware/nollamas_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/middleware/nollamas_test.go b/internal/middleware/nollamas_test.go
index 37b66e5e9..ffe8cbbc8 100644
--- a/internal/middleware/nollamas_test.go
+++ b/internal/middleware/nollamas_test.go
@@ -45,7 +45,7 @@ func TestNoLLaMasMiddleware(t *testing.T) {
e := gin.New()
// Setup necessary configuration variables.
- config.SetAdvancedScraperDeterrence(true)
+ config.SetAdvancedScraperDeterrenceEnabled(true)
config.SetWebTemplateBaseDir("../../web/template")
// Load templates into engine.