forked from GNUsocial/gnu-social
set the current user in api actions
This commit is contained in:
parent
32f47004df
commit
a838891c0e
@ -204,6 +204,8 @@ class ApiAuthAction extends ApiAction
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->auth_user = $user;
|
$this->auth_user = $user;
|
||||||
|
global $_cur;
|
||||||
|
$_cur = $this->auth_user;
|
||||||
Event::handle('EndSetApiUser', array($user));
|
Event::handle('EndSetApiUser', array($user));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user