diff options
author | 2022-01-23 14:41:58 +0100 | |
---|---|---|
committer | 2022-01-23 14:41:58 +0100 | |
commit | c157b1b20b38cc331cfd1673433d077719feef3f (patch) | |
tree | 69777c5d300ed87d0ac8bb0daf51d8ffa4c4ddb7 /internal/media/types.go | |
parent | use exif-terminator (diff) | |
download | gotosocial-c157b1b20b38cc331cfd1673433d077719feef3f.tar.xz |
rework data function to provide filesize
Diffstat (limited to 'internal/media/types.go')
-rw-r--r-- | internal/media/types.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/media/types.go b/internal/media/types.go index 0a7f60d66..b9c79d464 100644 --- a/internal/media/types.go +++ b/internal/media/types.go @@ -118,4 +118,4 @@ type AdditionalEmojiInfo struct { } // DataFunc represents a function used to retrieve the raw bytes of a piece of media. -type DataFunc func(ctx context.Context) (io.Reader, error) +type DataFunc func(ctx context.Context) (reader io.Reader, fileSize int, err error) |