mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-09 21:50:45 +00:00
Update Helpers.php
This commit is contained in:
parent
12b400707f
commit
823d756781
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ class Helpers
|
||||||
try {
|
try {
|
||||||
$date = Carbon::parse($timestamp);
|
$date = Carbon::parse($timestamp);
|
||||||
$now = Carbon::now();
|
$now = Carbon::now();
|
||||||
$tenYearsAgo = $now->copy()->subYears(10);
|
$tenYearsAgo = $now->copy()->subYears(20);
|
||||||
$isMoreThanTenYearsOld = $date->lt($tenYearsAgo);
|
$isMoreThanTenYearsOld = $date->lt($tenYearsAgo);
|
||||||
$tomorrow = $now->copy()->addDay();
|
$tomorrow = $now->copy()->addDay();
|
||||||
$isMoreThanOneDayFuture = $date->gt($tomorrow);
|
$isMoreThanOneDayFuture = $date->gt($tomorrow);
|
||||||
|
|
Loading…
Reference in a new issue