瀏覽代碼

Update antispam bouncer, change recent from 1 week to 3 months

Daniel Supernault 4 年之前
父節點
當前提交
7d818197bb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Util/Sentiment/Bouncer.php

+ 1 - 1
app/Util/Sentiment/Bouncer.php

@@ -18,7 +18,7 @@ class Bouncer {
 		$recentKey = 'pf:bouncer:recent_by_pid:' . $status->profile_id;
 		$recentTtl = now()->addMinutes(5);
 		$recent = Cache::remember($recentKey, $recentTtl, function() use($status) {
-			return $status->profile->created_at->gt(now()->subWeek()) || $status->profile->statuses()->count() == 0;
+			return $status->profile->created_at->gt(now()->subMonths(3)) || $status->profile->statuses()->count() == 0;
 		});
 
 		if(!$recent) {