aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-06-16 11:00:24 -0500
committerAnthony Wang2022-06-16 11:00:24 -0500
commit0c49fea641e074ab3d1b329dea6035d76d8fb174 (patch)
tree9044aa6d52bedc94f58c84f8aed37c50f71f4441
parent6336ba2e830f6d9b0cc2fd3edb1b9a74b8e5ff73 (diff)
Don't multiply Federation.MaxSize by 1<<20 twice
-rw-r--r--routers/api/v1/activitypub/reqsignature.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/activitypub/reqsignature.go b/routers/api/v1/activitypub/reqsignature.go
index 5897765d9..c90ed6d4b 100644
--- a/routers/api/v1/activitypub/reqsignature.go
+++ b/routers/api/v1/activitypub/reqsignature.go
@@ -61,7 +61,7 @@ func fetch(iri *url.URL) (b []byte, err error) {
err = fmt.Errorf("url IRI fetch [%s] failed with status (%d): %s", iri, resp.StatusCode, resp.Status)
return
}
- b, err = io.ReadAll(io.LimitReader(resp.Body, setting.Federation.MaxSize*(1<<20)))
+ b, err = io.ReadAll(io.LimitReader(resp.Body, setting.Federation.MaxSize))
return
}