Merge remote-tracking branch 'upstream/develop' into photo-guid

This commit is contained in:
Michael 2021-10-04 06:21:19 +00:00
commit 43a17b6129
5 changed files with 25 additions and 14 deletions

View file

@ -850,6 +850,10 @@ class User
*/
public static function getAvatarUrl(array $user, string $size = ''):string
{
if (empty($user['nickname'])) {
DI::logger()->warning('Missing user nickname key', ['trace' => System::callstack(20)]);
}
$url = DI::baseUrl() . '/photo/';
switch ($size) {