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,