Skip to content

Commit

Permalink
Mirror: Include bans in adminremarks command (#259)
Browse files Browse the repository at this point in the history
## Mirror of PR #26240: [Include bans in adminremarks
command](space-wizards/space-station-14#26240)
from <img src="https://avatars.githubusercontent.com/u/10567778?v=4"
alt="space-wizards" width="22"/>
[space-wizards](https://github.com/space-wizards)/[space-station-14](https://github.com/space-wizards/space-station-14)

###### `f55c98ce6d1dfdc14a293f2559647372203938af`

PR opened by <img
src="https://avatars.githubusercontent.com/u/8107459?v=4" width="16"/><a
href="https://github.com/PJB3005"> PJB3005</a> at 2024-03-18 17:50:15
UTC

---

PR changed 1 files with 2 additions and 0 deletions.

The PR had the following labels:


---

<details open="true"><summary><h1>Original Body</h1></summary>

> Fixes #20645
> 
> 🆑
> - add: Bans are now shown in the "adminremarks" command.


</details>

Co-authored-by: SimpleStation14 <Unknown>
  • Loading branch information
SimpleStation14 authored May 9, 2024
1 parent b26a41d commit 6a2306d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Content.Server/Database/ServerDbBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,8 @@ public async Task<List<IAdminRemarksRecord>> GetVisibleAdminRemarks(Guid player)
.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;
}

Expand Down

0 comments on commit 6a2306d

Please sign in to comment.