diff options
author | 2024-11-04 14:00:10 +0000 | |
---|---|---|
committer | 2024-11-04 15:00:10 +0100 | |
commit | f3b2eca8b86c797170d198d2aeb16a4cadd71e41 (patch) | |
tree | e387216c9d91e1fefb50a02cee84c9e166558336 /internal/typeutils/internaltofrontend_test.go | |
parent | [bugfix] determine mime-type to use during ffprobe evaluation stage, don't bo... (diff) | |
download | gotosocial-f3b2eca8b86c797170d198d2aeb16a4cadd71e41.tar.xz |
[feature] add support for hinting via api/v_/instance preferred image / video max sizes (#3505)
* add support for hinting via api/v_/instance endpoints a preferred image / video size limit
* fix tests expecting old default values
Diffstat (limited to 'internal/typeutils/internaltofrontend_test.go')
-rw-r--r-- | internal/typeutils/internaltofrontend_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/typeutils/internaltofrontend_test.go b/internal/typeutils/internaltofrontend_test.go index cf11655ca..6c318e851 100644 --- a/internal/typeutils/internaltofrontend_test.go +++ b/internal/typeutils/internaltofrontend_test.go @@ -1968,10 +1968,10 @@ func (suite *InternalToFrontendTestSuite) TestInstanceV1ToFrontend() { "video/x-matroska" ], "image_size_limit": 41943040, - "image_matrix_limit": 16777216, + "image_matrix_limit": 9223372036854775807, "video_size_limit": 41943040, - "video_frame_rate_limit": 60, - "video_matrix_limit": 16777216 + "video_frame_rate_limit": 9223372036854775807, + "video_matrix_limit": 9223372036854775807 }, "polls": { "max_options": 6, @@ -2113,10 +2113,10 @@ func (suite *InternalToFrontendTestSuite) TestInstanceV2ToFrontend() { "video/x-matroska" ], "image_size_limit": 41943040, - "image_matrix_limit": 16777216, + "image_matrix_limit": 9223372036854775807, "video_size_limit": 41943040, - "video_frame_rate_limit": 60, - "video_matrix_limit": 16777216 + "video_frame_rate_limit": 9223372036854775807, + "video_matrix_limit": 9223372036854775807 }, "polls": { "max_options": 6, |