No newlines for media + spoiler (#111)

This commit is contained in:
cohlexyz
2026-05-04 02:29:44 +02:00
committed by GitHub
parent cf62274b4b
commit 79286662ce

View File

@@ -339,9 +339,17 @@ public class XeetEmbedCommand : ICommand
if (mediaUrls.Count > 0)
{
if (mediaUrls.Count >= 2)
{
bodyBuilder.Append("[spoiler=\"Media attachments\"]");
}
foreach (var mediaUrl in mediaUrls)
{
bodyBuilder.Append($"[img]{mediaUrl}[/img][br]");
bodyBuilder.Append($"[img]{mediaUrl}[/img]");
}
if (mediaUrls.Count > 2)
{
bodyBuilder.Append("[/spoiler]");
}
}