Fix bug in dupe checking on notice post when there is no notice in cache.

This commit is contained in:
Adrian Lang 2009-03-07 23:04:30 +01:00 committed by Evan Prodromou
parent 7d7d78b7f7
commit bea3fca189

View 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) {