mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 05:47:53 +00:00
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:
parent
2bb8c084c9
commit
dcc15dc847
15 changed files with 44 additions and 35 deletions
|
|
@ -11,7 +11,7 @@ namespace PluralKit.Bot
|
|||
member.NameFor(ctx.LookupContextFor(member));
|
||||
|
||||
public static string AvatarFor(this PKMember member, Context ctx) =>
|
||||
member.AvatarFor(ctx.LookupContextFor(member));
|
||||
member.AvatarFor(ctx.LookupContextFor(member)).TryGetCleanCdnUrl();
|
||||
|
||||
public static string DisplayName(this PKMember member) =>
|
||||
member.DisplayName ?? member.Name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue