]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix compile (#38477)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Sat, 21 Jun 2025 10:37:08 +0000 (12:37 +0200)
committerGitHub <noreply@github.com>
Sat, 21 Jun 2025 10:37:08 +0000 (12:37 +0200)
Content.Server/MassMedia/Systems/NewsSystem.cs

index 0abaa7fb16b0f0894575cdd5e5b941c220d950d8..6c4a62ff0944f112061aae3d544409ae1c0d3ca9 100644 (file)
@@ -239,12 +239,18 @@ public sealed class NewsSystem : SharedNewsSystem
         }
 
         if (_webhookSendDuringRound)
-            Task.Run(async () => await SendArticleToDiscordWebhook(article));
+            AddNewsSendWebhook(article.Value);
 
         UpdateWriterDevices();
 
         return true;
     }
+
+    private async void AddNewsSendWebhook(NewsArticle article)
+    {
+        await Task.Run(async () => await SendArticleToDiscordWebhook(article));
+    }
+
     #endregion
 
     #region Reader Event Handlers