]> sipb.mit.edu Git - ikiwiki.git/commitdiff
blogspam api now supports homepage link
authorJoey Hess <joey@gnu.kitenet.net>
Sat, 17 Jan 2009 20:39:08 +0000 (15:39 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Sat, 17 Jan 2009 20:39:08 +0000 (15:39 -0500)
IkiWiki/Plugin/blogspam.pm

index 4005e9f2a149aa534b2c7596ed5b9512f524a63d..cc6e840f0ec6c8aa31f15e80312c472165a82165 100644 (file)
@@ -83,17 +83,12 @@ sub checkcontent (@) {
        # and "buy".
        push @options, "exclude=stopwords";
 
-       # blogspam API does not have a field for author url, so put it in
-       # the content to be checked.
-       if (exists $params{url}) {
-               $params{content}.="\n".$params{url};
-       }
-
        my $res = $client->send_request('testComment', {
                ip => $ENV{REMOTE_ADDR},
                comment => $params{content},
                subject => defined $params{subject} ? $params{subject} : "",
                name => defined $params{author} ? $params{author} : "",
+               link => exists $params{url} ? $params{url} : "",
                options => join(",", @options),
                site => $config{url},
                version => "ikiwiki ".$IkiWiki::version,