]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Include bans in adminremarks command (#26240)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Mon, 18 Mar 2024 21:31:34 +0000 (22:31 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Mar 2024 21:31:34 +0000 (15:31 -0600)
Fixes #20645

Content.Server/Database/ServerDbBase.cs

index ed22c66360a948752adfca5ff5488cb494df6509..c6d53119888e0f367f98ac1c10f358d49fc417e3 100644 (file)
@@ -1368,6 +1368,8 @@ INSERT INTO player_round (players_id, rounds_id) VALUES ({players[player]}, {id}
                     .Include(note => note.Player)
                     .ToListAsync()).Select(MakeAdminNoteRecord));
             notesCol.AddRange(await GetMessagesImpl(db, player));
+            notesCol.AddRange(await GetServerBansAsNotesForUser(db, player));
+            notesCol.AddRange(await GetGroupedServerRoleBansAsNotesForUser(db, player));
             return notesCol;
         }