summary refs log tree commit diff
path: root/extra/admin-api/Spacebar.Cdn/Controllers/ImagesAndStickersController.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-04-12 21:04:22 +0200
committerRory& <root@rory.gay>2026-04-12 21:04:22 +0200
commitc24ef4c8a316f236b98c72f92dbf47b3bec75e0d (patch)
tree7d62e4fe89c6f4c76a01854c78d7cc0d412586e3 /extra/admin-api/Spacebar.Cdn/Controllers/ImagesAndStickersController.cs
parentCDN-CS: it works!!! (diff)
downloadserver-ts-c24ef4c8a316f236b98c72f92dbf47b3bec75e0d.tar.xz
CDN-CS: support passing a bin path as cdn worker -> forks a new proc
Diffstat (limited to 'extra/admin-api/Spacebar.Cdn/Controllers/ImagesAndStickersController.cs')
-rw-r--r--extra/admin-api/Spacebar.Cdn/Controllers/ImagesAndStickersController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/admin-api/Spacebar.Cdn/Controllers/ImagesAndStickersController.cs b/extra/admin-api/Spacebar.Cdn/Controllers/ImagesAndStickersController.cs

index 1f28f9bd..6c0409dc 100644 --- a/extra/admin-api/Spacebar.Cdn/Controllers/ImagesAndStickersController.cs +++ b/extra/admin-api/Spacebar.Cdn/Controllers/ImagesAndStickersController.cs
@@ -13,7 +13,7 @@ public class ImagesAndStickerController(LruFileCache lfc, IFileSource fs, CdnWor [HttpGet("/stickers/{id}.{ext}")] [HttpGet("/emojis/{id}")] [HttpGet("/emojis/{id}.{ext}")] - public async Task<IActionResult> GetUserAvatar(string id, string ext = "png") { + public async Task<IActionResult> GetUserAvatar(string id, string ext = "webp") { DiscordImageResizeParams resizeParams = Request.GetResizeParams(); var cacheKey = Request.Path + resizeParams.ToSerializedName(); LruFileCache.Entry? entry;