[backend/akko-client] Expose features on nodeinfo as well
Akkoma-FE seems to use this one for it's own feature detection
This commit is contained in:
parent
7518cf7422
commit
4f605a503a
2 changed files with 6 additions and 9 deletions
|
@ -94,9 +94,9 @@ public class NodeInfoController(IOptions<Config.InstanceSection> config, Databas
|
|||
|
||||
// TODO: STUB
|
||||
PublicTimelineVisibility = new() {
|
||||
Bubble = true,
|
||||
Federated = true,
|
||||
Local = true,
|
||||
Bubble = false,
|
||||
Federated = false,
|
||||
Local = false,
|
||||
},
|
||||
UploadLimits = new() {
|
||||
General = 50_000_000,
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue