diff --git a/app/Helper.php b/app/Helper.php index f50810e6..117a4761 100644 --- a/app/Helper.php +++ b/app/Helper.php @@ -1070,6 +1070,8 @@ public static function getMostViewedEventsRecently( [$minutes] ) ->where('created_at', '<', Carbon::now()) + // Visa inte jättegamla saker, som t.ex. när 7 år gammal artikel Coop i Timrå började visas. Så max en vecka gammal. + ->where('created_at', '>', Carbon::now()->subDays(7)) ->groupBy('createdYMD', 'crime_event_id') ->orderBy('views', 'desc') ->limit($limit)