diff --git a/Iceshrimp.Backend/Controllers/Federation/NodeInfoController.cs b/Iceshrimp.Backend/Controllers/Federation/NodeInfoController.cs index 9fd31ede..19d1b3a5 100644 --- a/Iceshrimp.Backend/Controllers/Federation/NodeInfoController.cs +++ b/Iceshrimp.Backend/Controllers/Federation/NodeInfoController.cs @@ -94,9 +94,9 @@ public class NodeInfoController(IOptions config, Databas // TODO: STUB PublicTimelineVisibility = new() { - Bubble = true, - Federated = true, - Local = true, + Bubble = false, + Federated = false, + Local = false, }, UploadLimits = new() { General = 50_000_000, diff --git a/Iceshrimp.Backend/Core/Federation/WebFinger/Types.cs b/Iceshrimp.Backend/Core/Federation/WebFinger/Types.cs index 92dad87f..053f1f4b 100644 --- a/Iceshrimp.Backend/Core/Federation/WebFinger/Types.cs +++ b/Iceshrimp.Backend/Core/Federation/WebFinger/Types.cs @@ -112,7 +112,9 @@ public class NodeInfoResponse [J("enableEmail")] public bool? EnableEmail { get; set; } [J("publicTimelineVisibility")] public PleromaPublicTimelineVisibility? PublicTimelineVisibility { get; set; } - [J("features")] public PleromaFeature[] Features { get; set; } = []; + + [J("post_formats")] public string[] PostFormats => ["text/plain", "text/x.misskeymarkdown"]; + [J("features")] public string[] Features => ["pleroma_api", "akkoma_api", "mastodon_api", "mastodon_api_streaming", "polls", "quote_posting", "editing", "pleroma_emoji_reactions", "exposable_reactions", "custom_emoji_reactions"]; [J("uploadLimits")] public PleromaUploadLimits? UploadLimits { get; set; } [J("suggestions")] public PleromaSuggestions? Suggestions { get; set; } [J("federation")] public PleromaFederation? Federation { get; set; } @@ -122,11 +124,6 @@ public class NodeInfoResponse [J("staffAccounts")] public string[] StaffAccounts { get; set; } = []; } - public enum PleromaFeature - { - - } - public class PleromaPublicTimelineVisibility { [J("bubble")] public bool? Bubble { get; set; }