"getUserId" is now "getLoggedInUserId"
This commit is contained in:
parent
15b93b4459
commit
c81e81dc8d
23 changed files with 31 additions and 31 deletions
|
|
@ -1071,7 +1071,7 @@ function status_editor(App $a, array $x = [], $notes_cid = 0, $popup = false)
|
|||
DI::profiler()->startRecording('rendering');
|
||||
$o = '';
|
||||
|
||||
$user = User::getById($a->getUserId(), ['uid', 'nickname', 'allow_location', 'default-location']);
|
||||
$user = User::getById($a->getLoggedInUserId(), ['uid', 'nickname', 'allow_location', 'default-location']);
|
||||
|
||||
$x['allow_location'] = $x['allow_location'] ?? $user['allow_location'];
|
||||
$x['default_location'] = $x['default_location'] ?? $user['default-location'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue