]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix bug in dupe checking on notice post when there is no notice in cache.
authorAdrian Lang <mail@adrianlang.de>
Sat, 7 Mar 2009 22:04:30 +0000 (23:04 +0100)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 8 Mar 2009 01:45:29 +0000 (17:45 -0800)
classes/Notice.php

index eac90ce95b626641c44dd432a3e7d61c19950e9d..ac4db944f2571a4ee11b20b79556260e7aed9477 100644 (file)
@@ -234,7 +234,7 @@ class Notice extends Memcached_DataObject
         $notice->content = $content;
         $notice->whereAdd('now() - created < ' . common_config('notice', 'dupelimit'));
         $cnt = $notice->count();
-        return ($cnt > 0);
+        return ($cnt == 0);
     }
 
     static function checkEditThrottle($profile_id) {