From 7d818197bb5fc7460a2f0f3a11b58678ac1e80f6 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 15 Dec 2020 01:03:19 -0700 Subject: [PATCH 1/2] Update antispam bouncer, change recent from 1 week to 3 months --- app/Util/Sentiment/Bouncer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Util/Sentiment/Bouncer.php b/app/Util/Sentiment/Bouncer.php index e710266e2..50150132e 100644 --- a/app/Util/Sentiment/Bouncer.php +++ b/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) { From d54bf55b61531a56c4d8b0d03735cf8a94546241 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 15 Dec 2020 01:04:25 -0700 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59e831001..a59adbf58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -142,6 +142,7 @@ - Updated Timeline, remove simple mode and set labs deprecation date. ([df9c3adf](https://github.com/pixelfed/pixelfed/commit/df9c3adf)) - Updated 2FA setup, fix qrcode handler. ([cd2661fc](https://github.com/pixelfed/pixelfed/commit/cd2661fc)) - Updated avatars, use jpeg default. ([f6528c84](https://github.com/pixelfed/pixelfed/commit/f6528c84)) +- Updated antispam bouncer, change recent from 1 week to 3 months. ([7d818197](https://github.com/pixelfed/pixelfed/commit/7d818197)) ## [v0.10.9 (2020-04-17)](https://github.com/pixelfed/pixelfed/compare/v0.10.8...v0.10.9) ### Added