]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Correction to recently added dupe-checking feature - was using wrong config value
authorCiaranG <ciaran@ciarang.com>
Wed, 11 Mar 2009 09:12:39 +0000 (09:12 +0000)
committerCiaranG <ciaran@ciarang.com>
Wed, 11 Mar 2009 09:12:39 +0000 (09:12 +0000)
classes/Notice.php

index ac4db944f2571a4ee11b20b79556260e7aed9477..1e3b330f26e68217b55776dd286a9022dd82e64a 100644 (file)
@@ -232,7 +232,7 @@ class Notice extends Memcached_DataObject
         $notice = new Notice();
         $notice->profile_id = $profile_id;
         $notice->content = $content;
-        $notice->whereAdd('now() - created < ' . common_config('notice', 'dupelimit'));
+        $notice->whereAdd('now() - created < ' . common_config('site', 'dupelimit'));
         $cnt = $notice->count();
         return ($cnt == 0);
     }