Recent Topics

[4.0.5] Reporting to central list working?

Started by on Oct 20, 2011 – Contents updated: Oct 20, 2011

Oct 20, 2011 01:05    

When I reported spam to the central list with b2evo 2.4.x, I got a line saying, spam added to existing record, or this is the first report.
I upgraded to 4.0.5, and I continue to have "report to central list" selected. But I don't get any confirmation that the spam got reported. I only see "added to local list" and "hit removed."
Is this intentional, or am I missing something?

Jan 22, 2012 21:06

I skipped from 3.3.3 to 4.1.2, but I was also troubled by the lack of report to central happening in the output.

After some looking around in the code...the solution is here:

--- antispam.ctrl.php.orig	2012-01-22 12:00:01.000000000 -0800
+++ antispam.ctrl.php	2012-01-22 11:54:59.000000000 -0800
@@ -121,6 +121,11 @@
 			$Messages->add( sprintf( T_('Deleted %d comments matching «%s».'), $r, htmlspecialchars($keyword) ), 'success' );
 		}
 
+		if( $report )
+		{ // Report this keyword as abuse:
+			antispam_report_abuse( $keyword );
+		}
+
 		if( $blacklist_locally )
 		{ // Local blacklist:
 			if( antispam_create( $keyword ) )
@@ -138,11 +143,6 @@
 			}
 		}
 
-		if( $report )
-		{ // Report this keyword as abuse:
-			antispam_report_abuse( $keyword );
-		}
-
 		param( 'request', 'string', '' );
 		if( $display_mode == 'js' && $request != 'checkban' )
 		{

If you read the comment in the blacklist_locally section...it says

// We have EXITed already at this point!!

So, the reporting after local blacklist doesn't happen.

I suppose the alternative is, if you want to report...don't do local blacklisting?

The Dreamer


Form is loading...

Community software – This forum is powered by b2evolution CMS, a complete engine for your website.