diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-01-17 15:39:08 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-01-17 15:39:08 -0500 |
commit | 6b681ed299191b4b803277f56e56a16dfa9906a5 (patch) | |
tree | a96751987c3c2f3d6de6e6367ffdf991b0be16c3 /IkiWiki/Plugin | |
parent | cd2ddb57a5a20e308cee912e26f2383733c11b3c (diff) | |
download | ikiwiki-6b681ed299191b4b803277f56e56a16dfa9906a5.tar ikiwiki-6b681ed299191b4b803277f56e56a16dfa9906a5.tar.gz |
blogspam api now supports homepage link
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/blogspam.pm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/IkiWiki/Plugin/blogspam.pm b/IkiWiki/Plugin/blogspam.pm index 4005e9f2a..cc6e840f0 100644 --- a/IkiWiki/Plugin/blogspam.pm +++ b/IkiWiki/Plugin/blogspam.pm @@ -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, |