]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add logs that provide session to player admin logs (#28628)
authorShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
Wed, 5 Jun 2024 14:19:54 +0000 (07:19 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Jun 2024 14:19:54 +0000 (00:19 +1000)
Content.Server/Administration/Logs/AdminLogManager.Json.cs

index 0a67d61cefe7fb1c25e7a576094ae76a2781ed06..9e6274a49330f99e9bb8b6a82a8ccc397d84da6f 100644 (file)
@@ -65,6 +65,10 @@ public sealed partial class AdminLogManager
             {
                 players.Add(actor.PlayerSession.UserId.UserId);
             }
+            else if (value is SerializablePlayer player)
+            {
+                players.Add(player.Player.UserId.UserId);
+            }
         }
 
         return (JsonSerializer.SerializeToDocument(parsed, _jsonOptions), players);