mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 22:02:46 +00:00
Return null
if MaxFileSizeBytes is 0 (#2409)
* Return "null" if MaxFileSizeBytes is 0 * Add comment and nil check (better save than sorry) * Simplify config
This commit is contained in:
parent
bfa344e831
commit
979a551f1e
5 changed files with 21 additions and 18 deletions
|
@ -551,7 +551,7 @@ func (r *downloadRequest) getRemoteFile(
|
|||
// If we do not have a record, we need to fetch the remote file first and then respond from the local file
|
||||
err := r.fetchRemoteFileAndStoreMetadata(
|
||||
ctx, client,
|
||||
cfg.AbsBasePath, *cfg.MaxFileSizeBytes, db,
|
||||
cfg.AbsBasePath, cfg.MaxFileSizeBytes, db,
|
||||
cfg.ThumbnailSizes, activeThumbnailGeneration,
|
||||
cfg.MaxThumbnailGenerators,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue