]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6066 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jul 2023 13:21:42 +0000 (15:21 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jul 2023 13:21:42 +0000 (15:21 +0200)
app/Http/Controllers/Admin/Operations/FluidbookPublication/PreviewOperation.php

index 0d81c9a19509d0d37333180ded7b6cd053d2ef47..212b72be62603e9c81114eb089371fae9f3692e7 100644 (file)
@@ -61,7 +61,7 @@ trait PreviewOperation
             return $check;
         }
 
-        if (null === $time || ((null === $path || $path === 'index.html') && $time < (time() - 60) && !$nointerface && !$shortLoading)) {
+        if (null === $time || ((null === $path || $path === 'index.html') && $time>0 && $time < (time() - 60) && !$nointerface && !$shortLoading)) {
             $v = ($version === 'online') ? '' : $version . '/';
             $url = backpack_url($segment . '/preview/' . $v . $id . '_' . $hash . '_' . time()) . '/' . $q;
             return $this->loadingCompile($url, $id, $hash);