This commit is contained in:
Daniel Supernault 2024-11-11 21:49:41 -07:00
parent bdc395dc8e
commit cf38a508ca
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -307,7 +307,8 @@ class Helpers
$isMoreThanTenYearsOld = $date->lt($tenYearsAgo); $isMoreThanTenYearsOld = $date->lt($tenYearsAgo);
$tomorrow = $now->copy()->addDay(); $tomorrow = $now->copy()->addDay();
$isMoreThanOneDayFuture = $date->gt($tomorrow); $isMoreThanOneDayFuture = $date->gt($tomorrow);
return !($isMoreThanTenYearsOld || $isMoreThanOneDayFuture);
return ! ($isMoreThanTenYearsOld || $isMoreThanOneDayFuture);
} catch (\Exception $e) { } catch (\Exception $e) {
return false; return false;
} }
@ -344,7 +345,7 @@ class Helpers
return; return;
} }
if(!self::validateTimestamp($res['published'])) { if (! self::validateTimestamp($res['published'])) {
return; return;
} }