mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat(bot): add webp support to image types
This commit is contained in:
parent
7ff08ac0b9
commit
ad093ad566
1 changed files with 1 additions and 2 deletions
|
|
@ -16,8 +16,7 @@ public static class AvatarUtils
|
|||
// List of MIME types we consider acceptable
|
||||
var acceptableMimeTypes = new[]
|
||||
{
|
||||
"image/jpeg", "image/gif", "image/png"
|
||||
// TODO: add image/webp once ImageSharp supports this
|
||||
"image/jpeg", "image/gif", "image/png", "image/webp"
|
||||
};
|
||||
|
||||
if (!PluralKit.Core.MiscUtils.TryMatchUri(url, out var uri))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue