Update mtime of empty expired icons

parallel-fetching
gravel 2 years ago
parent 74206ae3b6
commit 50d50af2aa
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -61,7 +61,7 @@
log_info("$room_id returned empty icon.");
}
// Never overwrite with an empty file.
if (!(file_exists($icon_cached) && empty($icon))) {
if (!(file_exists($icon_cached) && filesize($icon_cached) > 0 && empty($icon))) {
file_put_contents($icon_cached, $icon);
}
}

Loading…
Cancel
Save