From 2f96e96576e12115a3ea43b9ac62b1c2000f16a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Tue, 3 Mar 2026 12:48:00 +0100 Subject: [PATCH] Migrate realm populating online lookup source to use helper method for retrieving tags To reduce logic duplication. --- .../Screens/SelectV2/RealmPopulatingOnlineLookupSource.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/osu.Game/Screens/SelectV2/RealmPopulatingOnlineLookupSource.cs b/osu.Game/Screens/SelectV2/RealmPopulatingOnlineLookupSource.cs index 2b75820587..821e791140 100644 --- a/osu.Game/Screens/SelectV2/RealmPopulatingOnlineLookupSource.cs +++ b/osu.Game/Screens/SelectV2/RealmPopulatingOnlineLookupSource.cs @@ -101,10 +101,9 @@ namespace osu.Game.Screens.SelectV2 if (dbBeatmap.MatchesOnlineVersion && dbBeatmap.Status != onlineBeatmap.Status) dbBeatmap.Status = onlineBeatmap.Status; - HashSet userTags = onlineBeatmap.TopTags? - .Select(t => (topTag: t, relatedTag: tagsById.GetValueOrDefault(t.TagId))) - .Where(t => t.relatedTag != null) - .Select(t => t.relatedTag!.Name) + onlineBeatmap.BeatmapSet = onlineBeatmapSet; + HashSet userTags = onlineBeatmap.GetTopUserTags()? + .Select(t => t.Tag.Name) .ToHashSet() ?? []; if (!userTags.SetEquals(dbBeatmap.Metadata.UserTags))