1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 05:22:54 +08:00

Do not perform username lookups for scores without an online ID

This commit is contained in:
Bartłomiej Dach 2024-05-03 13:48:06 +02:00
parent 1b7652e60d
commit afb491dff0
No known key found for this signature in database

View File

@ -127,6 +127,9 @@ namespace osu.Game.Scoring
if (model.RealmUser.OnlineID == APIUser.SYSTEM_USER_ID)
return;
if (model.OnlineID < 0 && model.LegacyOnlineID <= 0)
return;
string username = model.RealmUser.Username;
if (usernameLookupCache.TryGetValue(username, out var existing))