diff options
| author | 2025-05-07 11:59:39 +0000 | |
|---|---|---|
| committer | 2025-05-07 11:59:39 +0000 | |
| commit | 4c96e2571db177377e6346359ccec7cf1b8299cb (patch) | |
| tree | 1f3a9259a4a9491b1efb392265c508295917e94a /internal/middleware/nollamas_test.go | |
| parent | [bugfix] Fix indentation on multi-line alt text in web view (#4149) (diff) | |
| download | gotosocial-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.go | 2 |
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. |
