瀏覽代碼

Update Bouncer, adjust advanced Autospam logic

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

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

@@ -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://',