diff --git a/Iceshrimp.Backend/Controllers/Federation/NodeInfoController.cs b/Iceshrimp.Backend/Controllers/Federation/NodeInfoController.cs index f418ddb1..2d9f46e9 100644 --- a/Iceshrimp.Backend/Controllers/Federation/NodeInfoController.cs +++ b/Iceshrimp.Backend/Controllers/Federation/NodeInfoController.cs @@ -46,9 +46,9 @@ public class NodeInfoController( var localPosts = await db.Notes.LongCountAsync(p => p.UserHost == null); var maxUploadSize = storageConfig.Value.MaxUploadSizeBytes; - var (instanceName, instanceDescription, adminContact) = + var (instanceName, instanceDescription, adminContact, themeColor) = await meta.GetManyAsync(MetaEntity.InstanceName, MetaEntity.InstanceDescription, - MetaEntity.AdminContactEmail); + MetaEntity.AdminContactEmail, MetaEntity.ThemeColor); return new NodeInfoResponse { @@ -88,7 +88,7 @@ public class NodeInfoController( TosUrl = "todo", RepositoryUrl = new Uri(Constants.RepositoryUrl), FeedbackUrl = new Uri(Constants.IssueTrackerUrl), - ThemeColor = "#000000", + ThemeColor = themeColor, DisableRegistration = true, DisableLocalTimeline = false, DisableRecommendedTimeline = false, diff --git a/Iceshrimp.Backend/Core/Services/MetaService.cs b/Iceshrimp.Backend/Core/Services/MetaService.cs index 64ffd3e9..c943777a 100644 --- a/Iceshrimp.Backend/Core/Services/MetaService.cs +++ b/Iceshrimp.Backend/Core/Services/MetaService.cs @@ -79,6 +79,7 @@ public static class MetaEntity public static readonly NullableStringMeta InstanceName = new("instance_name"); public static readonly NullableStringMeta InstanceDescription = new("instance_description"); public static readonly NullableStringMeta AdminContactEmail = new("admin_contact_email"); + public static readonly NullableStringMeta ThemeColor = new("theme_color"); } public class Meta(