WIP audiences
This commit is contained in:
parent
9846210fd6
commit
f3bb039d2f
15 changed files with 102 additions and 82 deletions
|
|
@ -28,7 +28,7 @@ namespace Yavsc.Abstract.Identity
|
|||
/// </remarks>
|
||||
public static string AvatarSrc(IApplicationUser? user)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(user?.UserName))
|
||||
if (user==null || string.IsNullOrWhiteSpace(user?.UserName))
|
||||
return YavscConstants.DefaultAvatar;
|
||||
return $"{YavscConstants.AvatarsPath}/{user!.UserName}.s.png";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue