blogspam api now supports homepage link

master
Joey Hess 2009-01-17 15:39:08 -05:00
parent cd2ddb57a5
commit 6b681ed299
1 changed files with 1 additions and 6 deletions

View 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,