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:
parent
1b7652e60d
commit
afb491dff0
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user