Fix bug in dupe checking on notice post when there is no notice in cache.
This commit is contained in:
parent
7d7d78b7f7
commit
bea3fca189
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user