Author: dom Date: 2012-03-01 22:12:03 +0000 (Thu, 01 Mar 2012) New Revision: 1303
Modified: sites/oxford.openguides.org/lib/OpenGuides/SpamPlugin/Akismet.pm Log: shh don't tell the spammers
Modified: sites/oxford.openguides.org/lib/OpenGuides/SpamPlugin/Akismet.pm =================================================================== --- sites/oxford.openguides.org/lib/OpenGuides/SpamPlugin/Akismet.pm 2012-02-02 19:08:11 UTC (rev 1302) +++ sites/oxford.openguides.org/lib/OpenGuides/SpamPlugin/Akismet.pm 2012-03-01 22:12:03 UTC (rev 1303) @@ -12,7 +12,13 @@ use Data::Dumper; use Config::Tiny; use MIME::Lite; +use Readonly;
+Readonly my %NODES_SKIP_CHECK => ( + 'Co-Op Walton Street' => 1, + 'Home' +); + sub notify_admins { my ( $class, %args ) = @_; print STDERR "Akismet deny:\n" . Dumper( %args ); @@ -39,6 +45,8 @@ my $url = $config->{_}->{'script_url'}; my $email = $config->{_}->{'contact_email'};
+ return 1 if $NODES_SKIP_CHECK{$args{node}}; + my $akismet = Net::Akismet->new( KEY => $api_key, URL => $url,