aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Thumbnail.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Daemon/Thumbnail.php')
-rw-r--r--Zotlabs/Daemon/Thumbnail.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Thumbnail.php b/Zotlabs/Daemon/Thumbnail.php
index caf5dd3ae..b3e539086 100644
--- a/Zotlabs/Daemon/Thumbnail.php
+++ b/Zotlabs/Daemon/Thumbnail.php
@@ -45,7 +45,9 @@ class Thumbnail {
}
}
}
- if(($default_controller) && (! file_exists(dbunescbin($attach['content']) . '.thumb'))) {
+ if(($default_controller)
+ && ((! file_exists(dbunescbin($attach['content']) . '.thumb'))
+ || (filectime(dbunescbin($attach['content']) . 'thumb') < (time() - 60)))) {
$default_controller->Thumb($attach,$preview_style,$preview_width,$preview_height);
}
}