-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use LazyUser when creating the user folder #33578
Use LazyUser when creating the user folder #33578
Conversation
6d529ce
to
35d7b4e
Compare
psalm seems unhappy |
@@ -362,7 +363,7 @@ public function getName() { | |||
* @throws NotPermittedException | |||
*/ | |||
public function getUserFolder($userId) { | |||
$userObject = $this->userManager->get($userId); | |||
$userObject = new LazyUser($userId, $this->userManager); | |||
|
|||
if (is_null($userObject)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can someone confirm it's save to remove this full block?
@@ -362,7 +363,7 @@ public function getName() { | |||
* @throws NotPermittedException | |||
*/ | |||
public function getUserFolder($userId) { | |||
$userObject = $this->userManager->get($userId); | |||
$userObject = new LazyUser($userId, $this->userManager); | |||
|
|||
if (is_null($userObject)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (is_null($userObject)) { | |
if (is_null($userObject->getDisplayName())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait that won't work 😩
/rebase |
Signed-off-by: Joas Schilling <coding@schilljs.com>
35d7b4e
to
6a2f2a1
Compare
Closing for now as we still see the error in our log from time to time which would then be unreachable |
Meme channel query count: