mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update Bouncer, adjust advanced Autospam logic
This commit is contained in:
parent
a11e1ee3f8
commit
18cddd43f3
1 changed files with 6 additions and 6 deletions
|
@ -66,12 +66,6 @@ class Bouncer {
|
|||
return (new self)->handle($status);
|
||||
}
|
||||
|
||||
if(AutospamService::active()) {
|
||||
if(AutospamService::check($status->caption)) {
|
||||
return (new self)->handle($status);
|
||||
}
|
||||
}
|
||||
|
||||
$recentKey = 'pf:bouncer_v0:recent_by_pid:' . $status->profile_id;
|
||||
$recentTtl = now()->addHours(28);
|
||||
|
||||
|
@ -95,6 +89,12 @@ class Bouncer {
|
|||
return;
|
||||
}
|
||||
|
||||
if(AutospamService::active()) {
|
||||
if(AutospamService::check($status->caption)) {
|
||||
return (new self)->handle($status);
|
||||
}
|
||||
}
|
||||
|
||||
if(!Str::contains($status->caption, [
|
||||
'https://',
|
||||
'http://',
|
||||
|
|
Loading…
Reference in a new issue