]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Made Blogspam Plugin Respect textlimit Setting.
authorChristopher Vollick <psycotica0@gmail.com>
Mon, 22 Feb 2010 16:20:44 +0000 (11:20 -0500)
committerChristopher Vollick <psycotica0@gmail.com>
Mon, 22 Feb 2010 16:20:44 +0000 (11:20 -0500)
The Blogspam plugin was setting a max-size to 140.
It was therefore rejecting posts with more characters as spam.

This kind of defeated the purpose of setting a higher limit...

plugins/BlogspamNetPlugin.php

index 9b7ed1c12361c0ee33497ce4af02365717289fd5..d52e6006ac8dbb4bc33bd203af9d59521782826f 100644 (file)
@@ -120,7 +120,7 @@ class BlogspamNetPlugin extends Plugin
         $args['site'] = common_root_url();
         $args['version'] = $this->userAgent();
 
-        $args['options'] = "max-size=140,min-size=0,min-words=0,exclude=bayasian";
+        $args['options'] = "max-size=" . common_config('site','textlimit') . ",min-size=0,min-words=0,exclude=bayasian";
 
         return $args;
     }