forked from GNUsocial/gnu-social
Correction to recently added dupe-checking feature - was using wrong config value
This commit is contained in:
parent
622cc150d8
commit
b9194e7923
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user