aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Thumbnail.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-21 14:30:26 -0800
committerzotlabs <mike@macgirvin.com>2017-11-21 14:30:26 -0800
commit8dceb8e3a75282540d7dbe9dc6e26091dad71fe0 (patch)
tree867b34d5d5e070498a183656ac1e092b70910f62 /Zotlabs/Daemon/Thumbnail.php
parent1acef2e242a824f77de1a9ea3971dcabfa1b63e2 (diff)
downloadvolse-hubzilla-8dceb8e3a75282540d7dbe9dc6e26091dad71fe0.tar.gz
volse-hubzilla-8dceb8e3a75282540d7dbe9dc6e26091dad71fe0.tar.bz2
volse-hubzilla-8dceb8e3a75282540d7dbe9dc6e26091dad71fe0.zip
thumbnail generator for epubs
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);
}
}