Silence ringtones on admin PDAs (#29801)

* Silence ringtones on invisible PDAs

* Revert "Silence ringtones on invisible PDAs"

This reverts commit afc1041f31eebe82e83630a856a8856b877a9826.

* Literally just this

* Add an admin announcement for news article publishing
This commit is contained in:
Tayrtahn
2024-07-07 23:33:17 -04:00
committed by GitHub
parent eab93cb09e
commit 8c3e72c8c8
3 changed files with 10 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ using Content.Server.Station.Systems;
using Content.Shared.Popups;
using Content.Shared.StationRecords;
using Robust.Shared.Audio.Systems;
using Content.Server.Chat.Managers;
namespace Content.Server.MassMedia.Systems;
@@ -35,6 +36,7 @@ public sealed class NewsSystem : SharedNewsSystem
[Dependency] private readonly GameTicker _ticker = default!;
[Dependency] private readonly AccessReaderSystem _accessReader = default!;
[Dependency] private readonly IdCardSystem _idCardSystem = default!;
[Dependency] private readonly IChatManager _chatManager = default!;
public override void Initialize()
{
@@ -161,6 +163,12 @@ public sealed class NewsSystem : SharedNewsSystem
$"{ToPrettyString(msg.Actor):actor} created news article {article.Title} by {article.Author}: {article.Content}"
);
_chatManager.SendAdminAnnouncement(Loc.GetString("news-publish-admin-announcement",
("actor", msg.Actor),
("title", article.Title),
("author", article.Author ?? Loc.GetString("news-read-ui-no-author"))
));
articles.Add(article);
var args = new NewsArticlePublishedEvent(article);

View File

@@ -34,3 +34,4 @@ news-write-ui-richtext-tooltip = News articles support rich text
{"[bullet/]bullet[/color]"}
news-pda-notification-header = New news article
news-publish-admin-announcement = {$actor} published news article {$title} by {$author}"

View File

@@ -667,6 +667,7 @@
scanDelay: 0
- type: CartridgeLoader
uiKey: enum.PdaUiKey.Key
notificationsEnabled: false
preinstalled:
- CrewManifestCartridge
- NotekeeperCartridge