Fix issue with editing notes for other avatars
parent
b699af87dc
commit
017ae9132e
|
@ -546,6 +546,10 @@ namespace OpenSim.Data.MySQL
|
||||||
reader.Read();
|
reader.Read();
|
||||||
notes.Notes = OSD.FromString((string)reader["notes"]);
|
notes.Notes = OSD.FromString((string)reader["notes"]);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
notes.Notes = OSD.FromString("");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -760,8 +760,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles
|
||||||
IClientAPI remoteClient = (IClientAPI)sender;
|
IClientAPI remoteClient = (IClientAPI)sender;
|
||||||
string serverURI = string.Empty;
|
string serverURI = string.Empty;
|
||||||
GetUserProfileServerURI(remoteClient.AgentId, out serverURI);
|
GetUserProfileServerURI(remoteClient.AgentId, out serverURI);
|
||||||
note.TargetId = remoteClient.AgentId;
|
note.UserId = remoteClient.AgentId;
|
||||||
UUID.TryParse(args[0], out note.UserId);
|
UUID.TryParse(args[0], out note.TargetId);
|
||||||
|
|
||||||
object Note = (object)note;
|
object Note = (object)note;
|
||||||
if(!JsonRpcRequest(ref Note, "avatarnotesrequest", serverURI, UUID.Random().ToString()))
|
if(!JsonRpcRequest(ref Note, "avatarnotesrequest", serverURI, UUID.Random().ToString()))
|
||||||
|
|
Loading…
Reference in New Issue