1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-18 08:12:55 +08:00

Merge branch 'master' into Cakefy_osu!

This commit is contained in:
miterosan 2018-10-04 19:07:32 +02:00 committed by GitHub
commit 12d30cec42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -386,10 +386,13 @@ namespace osu.Game.Overlays.Profile
infoTextLeft.AddText(new DrawableJoinDate(user.JoinDate), boldItalic); infoTextLeft.AddText(new DrawableJoinDate(user.JoinDate), boldItalic);
} }
infoTextLeft.NewLine(); if (user.LastVisit.HasValue)
infoTextLeft.AddText("Last seen ", lightText); {
infoTextLeft.AddText(new DrawableDate(user.LastVisit), boldItalic); infoTextLeft.NewLine();
infoTextLeft.NewParagraph(); infoTextLeft.AddText("Last seen ", lightText);
infoTextLeft.AddText(new DrawableDate(user.LastVisit.Value), boldItalic);
infoTextLeft.NewParagraph();
}
if (user.PlayStyle?.Length > 0) if (user.PlayStyle?.Length > 0)
{ {

View File

@ -84,7 +84,7 @@ namespace osu.Game.Users
public string Location; public string Location;
[JsonProperty(@"last_visit")] [JsonProperty(@"last_visit")]
public DateTimeOffset LastVisit; public DateTimeOffset? LastVisit;
[JsonProperty(@"twitter")] [JsonProperty(@"twitter")]
public string Twitter; public string Twitter;