mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
Remove 60+ (whew) SanitizeMentions() calls
This commit is contained in:
parent
2c35649ef0
commit
378c49cb20
14 changed files with 66 additions and 72 deletions
|
|
@ -19,13 +19,13 @@ namespace PluralKit.Bot
|
|||
{
|
||||
if (m.HasProxyTags)
|
||||
{
|
||||
var proxyTagsString = m.ProxyTagsString().SanitizeMentions();
|
||||
var proxyTagsString = m.ProxyTagsString();
|
||||
if (proxyTagsString.Length > 100) // arbitrary threshold for now, tweak?
|
||||
proxyTagsString = "tags too long, see member card";
|
||||
return $"[`{m.Hid}`] **{m.NameFor(ctx).SanitizeMentions()}** *({proxyTagsString})*";
|
||||
return $"[`{m.Hid}`] **{m.NameFor(ctx)}** *({proxyTagsString})*";
|
||||
}
|
||||
|
||||
return $"[`{m.Hid}`] **{m.NameFor(ctx).SanitizeMentions()}**";
|
||||
return $"[`{m.Hid}`] **{m.NameFor(ctx)}**";
|
||||
}
|
||||
|
||||
var buf = new StringBuilder();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue