mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Fix comment can be voted if user is null
This commit is contained in:
@ -59,7 +59,7 @@ namespace osu.Game.Overlays.Comments
|
||||
AccentColour = borderContainer.BorderColour = sideNumber.Colour = colours.GreenLight;
|
||||
hoverLayer.Colour = Color4.Black.Opacity(0.5f);
|
||||
|
||||
if (api.LocalUser.Value.Id != comment.UserId)
|
||||
if ((api.LocalUser.Value?.Id ?? comment.UserId) != comment.UserId)
|
||||
Action = onAction;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user