From d7f967cbb599c64d18fe951d1725bf3050597dda Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 10 Jun 2025 15:43:31 +0200 Subject: [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 Co-authored-by: kim Co-committed-by: kim --- cmd/gotosocial/action/server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') 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 } -- cgit v1.2.3