1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-31 05:50:10 +08:00

Include author

This commit is contained in:
Dan Balasescu
2025-02-26 15:04:43 +09:00
Unverified
parent 59cfcb3595
commit b7d431fdde
@@ -12,6 +12,7 @@ using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.Graphics.UserInterface;
using osu.Game.Models;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Online.Rooms;
@@ -222,6 +223,14 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
beatmapsById[beatmap.OnlineID] = new BeatmapInfo
{
Difficulty = new BeatmapDifficulty(beatmap.Difficulty),
Metadata =
{
Author = new RealmUser
{
Username = beatmap.Metadata.Author.Username,
OnlineID = beatmap.Metadata.Author.OnlineID,
}
},
DifficultyName = beatmap.DifficultyName,
StarRating = beatmap.StarRating,
Length = beatmap.Length,