- # 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},
+ my %req=(
+ ip => $session->remote_addr(),
+ comment => defined $params{diff} ? $params{diff} : $params{content},