Added an @ to PeerTube display names so it can't be used to inject a command

This commit is contained in:
barelyprofessional
2025-07-23 22:54:04 -05:00
parent 57cd989ed6
commit 5d853d5b72

View File

@@ -79,7 +79,7 @@ public class PeerTube(ChatBot kfChatBot) : IDisposable
}
persistedLive.Add(stream.Uuid);
await kfChatBot.SendChatMessageAsync($"{stream.Account.DisplayName} is live! {stream.Name} {stream.Url}", true);
await kfChatBot.SendChatMessageAsync($"@{stream.Account.DisplayName} is live! {stream.Name} {stream.Url}", true);
if (settings[BuiltIn.Keys.CaptureEnabled].ToBoolean())
{