Correction to recently added dupe-checking feature - was using wrong config value

This commit is contained in:
CiaranG 2009-03-11 09:12:39 +00:00
parent 622cc150d8
commit b9194e7923
1 changed files with 1 additions and 1 deletions

View 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);
}