mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-09 13:50:44 +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 {
|
||||
$date = Carbon::parse($timestamp);
|
||||
$now = Carbon::now();
|
||||
$tenYearsAgo = $now->copy()->subYears(10);
|
||||
$tenYearsAgo = $now->copy()->subYears(20);
|
||||
$isMoreThanTenYearsOld = $date->lt($tenYearsAgo);
|
||||
$tomorrow = $now->copy()->addDay();
|
||||
$isMoreThanOneDayFuture = $date->gt($tomorrow);
|
||||
|
|
Loading…
Reference in a new issue