mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01: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
@ -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 New Issue
Block a user