Store and retrieve user profile url at runtime
Not yet persisted
Thanks Fly-Man
arthursv
Justin Clark-Casey (justincc) 2009-08-11 17:29:15 +01:00
parent a52b5e46c0
commit 655438a59d
3 changed files with 14 additions and 1 deletions

View File

@ -114,6 +114,11 @@ namespace OpenSim.Framework
/// </summary>
private uint m_profileWantDoMask; // Profile window "I want to" mask
/// <summary>
/// The profile url for an avatar
/// </summary>
private string m_profileUrl;
private UUID m_rootInventoryFolderId;
/// <summary>
@ -349,6 +354,12 @@ namespace OpenSim.Framework
set { m_profileFirstText = value; }
}
public string ProfileUrl
{
get { return m_profileUrl; }
set { m_profileUrl = value; }
}
public UUID Image
{
get { return m_profileImage; }

View File

@ -4954,6 +4954,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
UserProfile.FirstLifeAboutText = Utils.BytesToString(Properties.FLAboutText);
UserProfile.FirstLifeImage = Properties.FLImageID;
UserProfile.Image = Properties.ImageID;
UserProfile.ProfileUrl = Utils.BytesToString(Properties.ProfileURL);
handlerUpdateAvatarProperties(this, UserProfile);
}

View File

@ -111,7 +111,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Profiles
remoteClient.SendAvatarProperties(profile.ID, profile.AboutText,
Util.ToDateTime(profile.Created).ToString("M/d/yyyy", CultureInfo.InvariantCulture),
charterMember, profile.FirstLifeAboutText, (uint)(profile.UserFlags & 0xff),
profile.FirstLifeImage, profile.Image, String.Empty, profile.Partner);
profile.FirstLifeImage, profile.Image, profile.ProfileUrl, profile.Partner);
}
else
{
@ -130,6 +130,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Profiles
Profile.FirstLifeImage = newProfile.FirstLifeImage;
Profile.AboutText = newProfile.AboutText;
Profile.FirstLifeAboutText = newProfile.FirstLifeAboutText;
Profile.ProfileUrl = newProfile.ProfileUrl;
}
else
{