summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLibravatar kim <grufwub@gmail.com>2025-06-10 15:43:31 +0200
committerLibravatar kim <gruf@noreply.codeberg.org>2025-06-10 15:43:31 +0200
commitd7f967cbb599c64d18fe951d1725bf3050597dda (patch)
tree061a302732684980e3dbf3f1a6012f3cbef01e26 /cmd
parent[chore] Update interactionPolicy sub-policy parsing in line with documented d... (diff)
downloadgotosocial-d7f967cbb599c64d18fe951d1725bf3050597dda.tar.xz
[feature] configurable maximum thumbnail dimensions (#4258)
- adds configuration for thumbnail maximum dimensions with warning on exceeding recommendations - moves the media configuration vars into their own sub-struct - replaces the configuration flag funcs with simple string consts Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4258 Reviewed-by: tobi <kipvandenbos@noreply.codeberg.org> Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gotosocial/action/server/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go
index 3ec12fb83..30e4c28d0 100644
--- a/cmd/gotosocial/action/server/server.go
+++ b/cmd/gotosocial/action/server/server.go
@@ -620,14 +620,14 @@ func parseClientRanges() (
allowIPs := config.GetHTTPClientAllowIPs()
allowRanges := make([]netip.Prefix, len(allowIPs))
- allowFlag := config.HTTPClientAllowIPsFlag()
+ allowFlag := config.HTTPClientAllowIPsFlag
if err := parseF(allowIPs, allowRanges, allowFlag); err != nil {
return nil, err
}
blockIPs := config.GetHTTPClientBlockIPs()
blockRanges := make([]netip.Prefix, len(blockIPs))
- blockFlag := config.HTTPClientBlockIPsFlag()
+ blockFlag := config.HTTPClientBlockIPsFlag
if err := parseF(blockIPs, blockRanges, blockFlag); err != nil {
return nil, err
}