mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-30 22:07:39 -07:00
[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:
parent
3c0de95e41
commit
e17691df43
1 changed files with 35 additions and 1 deletions
|
@ -37,7 +37,41 @@ export async function getInstance(
|
|||
languages: meta.langs,
|
||||
registrations: !meta.disableRegistration || response.registrations,
|
||||
approval_required: !response.registrations,
|
||||
invites_enabled: 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,
|
||||
|
|
Loading…
Reference in a new issue