mirror of
https://github.com/versia-pub/versia-go.git
synced 2025-12-06 06:28:18 +01:00
fix(utils/content-map): file hash and size are optional
This commit is contained in:
parent
6c60c1e8ed
commit
0f44cfe95e
|
|
@ -95,10 +95,10 @@ type File struct {
|
||||||
Remote bool `json:"remote"`
|
Remote bool `json:"remote"`
|
||||||
|
|
||||||
// URL to the attachment
|
// URL to the attachment
|
||||||
Content *URL `json:"content"`
|
Content *URL `json:"content"`
|
||||||
Description string `json:"description"`
|
Description *string `json:"description,omitempty"`
|
||||||
Hash DataHash `json:"hash"`
|
Hash *DataHash `json:"hash,omitempty"`
|
||||||
Size int `json:"size"`
|
Size *int `json:"size,omitempty"`
|
||||||
|
|
||||||
// BlurHash is available when the content type is an image
|
// BlurHash is available when the content type is an image
|
||||||
BlurHash *string `json:"blurhash,omitempty"`
|
BlurHash *string `json:"blurhash,omitempty"`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue