Make "m.upload.size" optional

This commit is contained in:
Till Faelligen 2023-03-20 09:24:00 +01:00
parent 5579121c6f
commit 0459d2b9e5
No known key found for this signature in database
GPG Key ID: ACCDC9606D472758

View File

@ -35,7 +35,7 @@ import (
// configResponse is the response to GET /_matrix/media/r0/config // configResponse is the response to GET /_matrix/media/r0/config
// https://matrix.org/docs/spec/client_server/latest#get-matrix-media-r0-config // https://matrix.org/docs/spec/client_server/latest#get-matrix-media-r0-config
type configResponse struct { type configResponse struct {
UploadSize *config.FileSizeBytes `json:"m.upload.size"` UploadSize *config.FileSizeBytes `json:"m.upload.size,omitempty"`
} }
// Setup registers the media API HTTP handlers // Setup registers the media API HTTP handlers