[MastodonAPI] add Pleroma stuff to api/v1/instance

Pleroma has custom fields which we added to allow
compatibility with AkkomaFE

Co-authored-by: Legion Orsetti <fwam@users.noreply.github.com>
This commit is contained in:
April John 2023-09-04 17:01:12 +02:00
parent 3c0de95e41
commit e17691df43

View File

@ -38,6 +38,40 @@ export async function getInstance(
registrations: !meta.disableRegistration || response.registrations,
approval_required: !response.registrations,
invites_enabled: response.registrations,
pleroma : {
metadata: {
account_activation_required: !response.registrations,
birthday_min_age: 0,
birthday_required: false,
features: [
"mastodon_api",
"mastodon_api_float",
"polls",
"relay",
"quote_posting",
"pleroma_emoji_reactions",
"pleroma_chat_messages",
"exposable_reactions",
"profile_directory"
],
federation: {
enabled : true
},
fields_limits: {
max_fields: 10,
max_remote_fields: 20,
name_length: 512,
value_length: 2048
},
post_formats: [
"text/x.misskeymarkdown"
]
},
stats: {
mau: 1,
},
vapid_public_key: meta.swPublicKey ? meta.swPublicKey : "",
},
configuration: {
accounts: {
max_featured_tags: 20,