Skip to content

Commit

Permalink
Remove the Stupid Station Records Check From News (#739)
Browse files Browse the repository at this point in the history
# Description
It was never used but caused annoyance all the time: the listening post
could never use the news console and ghosts/centcom officials/skeletons
could never publish news because of it.

(This was not tested, I recommend either waiting til I test it or making
someone else test it before merging)

# Changelog
:cl:
- fix: You no longer need to have a station record to publish news.

Signed-off-by: Mnemotechnican <[email protected]>
  • Loading branch information
Mnemotechnician committed Aug 18, 2024
1 parent 5931965 commit b7fe64c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Content.Server/MassMedia/Systems/NewsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ private void OnWriteUiPublishMessage(Entity<NewsWriterComponent> ent, ref NewsWr
if (msg.Session.AttachedEntity is not { } author)
return;

if (!_accessReader.FindStationRecordKeys(author, out _))
return;

string? authorName = null;
if (_idCardSystem.TryFindIdCard(author, out var idCard))
authorName = idCard.Comp.FullName;
Expand Down

0 comments on commit b7fe64c

Please sign in to comment.