diff --git a/Iceshrimp.Backend/Controllers/Web/InstanceController.cs b/Iceshrimp.Backend/Controllers/Web/InstanceController.cs index 4a2a490d..92036d39 100644 --- a/Iceshrimp.Backend/Controllers/Web/InstanceController.cs +++ b/Iceshrimp.Backend/Controllers/Web/InstanceController.cs @@ -34,12 +34,16 @@ public class InstanceController( { var limits = new Limitations { NoteLength = instanceConfig.Value.CharacterLimit }; + var iconId = await meta.GetAsync(MetaEntity.IconFileId); + var iconUrl = await db.DriveFiles.Where(p => p.Id == iconId).Select(p => p.PublicUrl).FirstOrDefaultAsync(); + return new InstanceResponse { AccountDomain = instanceConfig.Value.AccountDomain, WebDomain = instanceConfig.Value.WebDomain, Registration = (Registrations)securityConfig.Value.Registrations, Name = await meta.GetAsync(MetaEntity.InstanceName), + IconUrl = iconUrl, Limits = limits }; } diff --git a/Iceshrimp.Shared/Schemas/Web/InstanceResponse.cs b/Iceshrimp.Shared/Schemas/Web/InstanceResponse.cs index b5d52e1b..c280b311 100644 --- a/Iceshrimp.Shared/Schemas/Web/InstanceResponse.cs +++ b/Iceshrimp.Shared/Schemas/Web/InstanceResponse.cs @@ -6,6 +6,7 @@ public class InstanceResponse public required string WebDomain { get; set; } public required Registrations Registration { get; set; } public required string? Name { get; set; } + public required string? IconUrl { get; set; } public required Limitations Limits { get; set; } }