public
Description: The ultra-lightweight ultra-flexible blogging engine with a fetish for birds and misspellings.
Homepage: http://chyrp.net/
Clone URL: git://github.com/vito/chyrp.git
Click here to lend your support to: chyrp and make a donation at www.pledgie.com !
Fixed Defensio false positive/negative reporting, and removed unnecessary 
"owner-url" setting from comment audit.
vito (author)
Tue Sep 02 16:13:13 -0700 2008
commit  12a1e446d0674cb95c26b4a44296d94684a4ed15
tree    a36036c07e1b3b15f422e9bfeccf12d5e1c5fb1b
parent  303cba317d4ec3af39c8b45a66a761da0369bb4b
...
357
358
359
 
360
361
362
...
371
372
373
 
374
375
376
...
388
389
390
391
 
392
393
 
394
395
396
...
357
358
359
360
361
362
363
...
372
373
374
375
376
377
378
...
390
391
392
 
393
394
 
395
396
397
398
0
@@ -357,6 +357,7 @@
0
 
0
         Flash::notice(__("Selected comments denied.", "comments"));
0
       }
0
+
0
       if (isset($_POST['approve'])) {
0
         foreach ($comments as $comment) {
0
           $comment = new Comment($comment);
0
@@ -371,6 +372,7 @@
0
 
0
         Flash::notice(__("Selected comments approved.", "comments"));
0
       }
0
+
0
       if (isset($_POST['spam'])) {
0
         foreach ($comments as $comment) {
0
           $comment = new Comment($comment);
0
@@ -388,9 +390,9 @@
0
       if (!empty($config->defensio_api_key)) {
0
         $defensio = new Defensio($config->url, $config->defensio_api_key);
0
         if (!empty($false_positives))
0
-          $defensio->submitFalsePositives(array("owner-url" => $config->url, "signatures" => implode(",", $false_positives)));
0
+          $defensio->submitFalsePositives(implode(",", $false_positives));
0
         if (!empty($false_negatives))
0
-          $defensio->submitFalseNegatives(array("owner-url" => $config->url, "signatures" => implode(",", $false_negatives)));
0
+          $defensio->submitFalseNegatives(implode(",", $false_negatives));
0
       }
0
 
0
       redirect("/admin/?action=".$from);
...
64
65
66
67
68
 
69
70
71
...
64
65
66
 
 
67
68
69
70
0
@@ -64,8 +64,7 @@
0
         $status = $type;
0
 
0
       if (!empty($config->defensio_api_key)) {
0
-        $comment = array("owner-url" => $config->url,
0
-                         "user-ip" => $_SERVER['REMOTE_ADDR'],
0
+        $comment = array("user-ip" => $_SERVER['REMOTE_ADDR'],
0
                          "article-date" => when("Y/m/d", $post->created_at),
0
                          "comment-author" => $author,
0
                          "comment-type" => $type,

Comments