mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21:24 +01:00
skip thumbnails with only one nonzero dimension in all_file_metadata
Previously we were only skipping thumbnails that had both dimensions nonzero. I think the assumption was that only the dimensions allowed by services::media::thumbnail_properties would be used. This is not the case because we have used arbitrary thumbnail dimensions when requesting remote thumbnails.
This commit is contained in:
parent
14b44064b3
commit
230192be1b
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ impl service::media::Data for KeyValueDatabase {
|
|||
let key = MediaFileKey::new(key);
|
||||
|
||||
let parts = MediaFileKeyParts::try_from(&key)?;
|
||||
if parts.width != 0 && parts.height != 0 {
|
||||
if parts.width != 0 || parts.height != 0 {
|
||||
// Skip thumbnails
|
||||
return Ok(None);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue