Merge pull request #177 from acw0/bugfix/tag-markdown

Properly show tags containing markdown in system embed
This commit is contained in:
Astrid 2020-06-11 21:35:28 +02:00 committed by GitHub
commit 4a4d980349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ namespace PluralKit.Bot {
string.Join(", ", switchMembers.Select(m => m.Name))); string.Join(", ", switchMembers.Select(m => m.Name)));
} }
if (system.Tag != null) eb.AddField("Tag", system.Tag); if (system.Tag != null) eb.AddField("Tag", system.Tag.EscapeMarkdown());
eb.AddField("Linked accounts", string.Join(", ", users).Truncate(1000), true); eb.AddField("Linked accounts", string.Join(", ", users).Truncate(1000), true);
if (system.MemberListPrivacy.CanAccess(ctx)) if (system.MemberListPrivacy.CanAccess(ctx))