mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-04 05:12:05 -04:00
No newlines for media + spoiler (#111)
This commit is contained in:
@@ -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]");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user