From 24e7624487b6ee11a3b4b325e0d831e2ea76314d Mon Sep 17 00:00:00 2001 From: pancakes Date: Mon, 20 Jan 2025 14:51:30 +1000 Subject: [PATCH] [backend/api] Fix profile avatar and banner endpoints --- Iceshrimp.Backend/Controllers/Web/ProfileController.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Iceshrimp.Backend/Controllers/Web/ProfileController.cs b/Iceshrimp.Backend/Controllers/Web/ProfileController.cs index 0bdcdf46..1e9f874a 100644 --- a/Iceshrimp.Backend/Controllers/Web/ProfileController.cs +++ b/Iceshrimp.Backend/Controllers/Web/ProfileController.cs @@ -21,7 +21,6 @@ namespace Iceshrimp.Backend.Controllers.Web; [Route("/api/iceshrimp/profile")] [Produces(MediaTypeNames.Application.Json)] public class ProfileController( - IOptions instance, UserService userSvc, DriveService driveSvc, DatabaseContext db @@ -126,8 +125,8 @@ public class ProfileController( return new DriveFileResponse { Id = file.Id, - Url = file.AccessUrl, - ThumbnailUrl = file.ThumbnailAccessUrl, + Url = file.RawAccessUrl, + ThumbnailUrl = file.RawThumbnailAccessUrl, Filename = file.Name, ContentType = file.Type, Sensitive = file.IsSensitive, @@ -196,8 +195,8 @@ public class ProfileController( return new DriveFileResponse { Id = file.Id, - Url = file.AccessUrl, - ThumbnailUrl = file.ThumbnailAccessUrl, + Url = file.RawAccessUrl, + ThumbnailUrl = file.RawThumbnailAccessUrl, Filename = file.Name, ContentType = file.Type, Sensitive = file.IsSensitive,