diff options
author | 2023-01-16 16:19:17 +0100 | |
---|---|---|
committer | 2023-01-16 16:19:17 +0100 | |
commit | d4cddf460a5145965b398e167f3cea24b5e3e436 (patch) | |
tree | 913fb17d42b2585e0420d5d3578cd5dc0b302eec /internal/typeutils/internaltofrontend_test.go | |
parent | [chore]: Bump github.com/minio/minio-go/v7 from 7.0.44 to 7.0.47 (#1348) (diff) | |
download | gotosocial-d4cddf460a5145965b398e167f3cea24b5e3e436.tar.xz |
[bugfix] Parse video metadata more accurately; allow Range in fileserver (#1342)
* don't serve unused fields for video attachments
* parse video bitrate + duration more accurately
* use ServeContent where appropriate to respect Range
* abstract temp file seeker into its own function
Diffstat (limited to 'internal/typeutils/internaltofrontend_test.go')
-rw-r--r-- | internal/typeutils/internaltofrontend_test.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/internal/typeutils/internaltofrontend_test.go b/internal/typeutils/internaltofrontend_test.go index e90999d19..88c9d46df 100644 --- a/internal/typeutils/internaltofrontend_test.go +++ b/internal/typeutils/internaltofrontend_test.go @@ -441,19 +441,13 @@ func (suite *InternalToFrontendTestSuite) TestVideoAttachmentToFrontend() { "height": 404, "frame_rate": "30/1", "duration": 15.033334, - "bitrate": 1206522, - "size": "720x404", - "aspect": 1.7821782 + "bitrate": 1206522 }, "small": { "width": 720, "height": 404, "size": "720x404", "aspect": 1.7821782 - }, - "focus": { - "x": 0, - "y": 0 } }, "description": "A cow adorably licking another cow!" |