Move mediaproxy URL rewriting to ProxyService
This shows full size avatars in API / cards. Also, rewrite URLs currently stored with media.discordapp.net "back" to cdn.discordapp.com before sending them to users.
This commit is contained in:
@@ -154,7 +154,7 @@ namespace PluralKit.Bot
|
||||
profile.Append($"\n**Created on:** {created.FormatZoned(zone)}");
|
||||
|
||||
if (opts.IncludeAvatar && m.AvatarFor(lookupCtx) is {} avatar)
|
||||
profile.Append($"\n**Avatar URL:** {avatar}");
|
||||
profile.Append($"\n**Avatar URL:** {avatar.TryGetCleanCdnUrl()}");
|
||||
|
||||
if (m.DescriptionFor(lookupCtx) is {} desc)
|
||||
profile.Append($"\n\n{desc}");
|
||||
|
Reference in New Issue
Block a user