forked from GNUsocial/gnu-social
Autocomplete action must exist on user registration
No need to restrict the autocomplete suggestion system to logged in users. It only botched the registration process, because the 'autocomplete' action had not been connected in the routing system.
This commit is contained in:
parent
633191d808
commit
981295f44c
@ -49,10 +49,8 @@ class AutocompletePlugin extends Plugin
|
||||
|
||||
function onRouterInitialized($m)
|
||||
{
|
||||
if (common_logged_in()) {
|
||||
$m->connect('main/autocomplete/suggest', array('action'=>'autocomplete'));
|
||||
}
|
||||
}
|
||||
|
||||
function onPluginVersion(&$versions)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user