forked from GNUsocial/gnu-social
[TESTS] Fix error when testing cold redis cache
This commit is contained in:
@@ -91,11 +91,7 @@ abstract class Common
|
||||
|
||||
public static function userNickname(): ?string
|
||||
{
|
||||
if (($user = self::user()) == null) {
|
||||
throw new NoLoggedInUser();
|
||||
} else {
|
||||
return $user->getNickname();
|
||||
}
|
||||
self::ensureLoggedIn()->getNickname();
|
||||
}
|
||||
|
||||
public function getAllNotes(int $noteScope): array
|
||||
|
||||
Reference in New Issue
Block a user