mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 02:00:09 +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
|
// List of MIME types we consider acceptable
|
||||||
var acceptableMimeTypes = new[]
|
var acceptableMimeTypes = new[]
|
||||||
{
|
{
|
||||||
"image/jpeg", "image/gif", "image/png"
|
"image/jpeg", "image/gif", "image/png", "image/webp"
|
||||||
// TODO: add image/webp once ImageSharp supports this
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!PluralKit.Core.MiscUtils.TryMatchUri(url, out var uri))
|
if (!PluralKit.Core.MiscUtils.TryMatchUri(url, out var uri))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue