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

View File

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