mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* Also use the profile cache for osKey2Name()
This commit is contained in:
@@ -1368,15 +1368,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
if (UUID.TryParse(id, out key))
|
||||
{
|
||||
UserProfileData UserProfile = World.CommsManager.UserService
|
||||
.GetUserProfile(key);
|
||||
if (UserProfile==null)
|
||||
CachedUserInfo userInfo = World.CommsManager.UserProfileCacheService.GetUserDetails(key);
|
||||
|
||||
if (null == userInfo)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
else
|
||||
{
|
||||
return UserProfile.Name;
|
||||
return userInfo.UserProfile.Name;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user