@ -310,13 +310,14 @@ const instanceSchema = v.pipe(
|
||||
// Detect GoToSocial
|
||||
if (typeof data.configuration?.accounts?.allow_custom_css === 'boolean') {
|
||||
data.version = `0.0.0 (compatible; GoToSocial ${data.version})`;
|
||||
if (!data.pleroma) {
|
||||
data.pleroma = {
|
||||
metadata: {
|
||||
post_formats: data.configuration?.statuses?.supported_mime_types,
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (!data.pleroma) {
|
||||
data.pleroma = {
|
||||
metadata: {
|
||||
post_formats: data.configuration?.statuses?.supported_mime_types,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
const apiVersions = getApiVersions(data);
|
||||
|
||||
@ -1384,7 +1384,7 @@ const getFeatures = (instance: Instance) => {
|
||||
v.software === PLEROMA,
|
||||
v.software === MITRA,
|
||||
v.software === GOTOSOCIAL,
|
||||
instance.pleroma.metadata.post_formats.length > 1,
|
||||
instance.pleroma.metadata.post_formats.filter((format) => format !== 'text/plain').length > 0,
|
||||
]),
|
||||
|
||||
/**
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pl-api",
|
||||
"version": "1.0.0-rc.48",
|
||||
"version": "1.0.0-rc.49",
|
||||
"type": "module",
|
||||
"homepage": "https://github.com/mkljczk/pl-fe/tree/develop/packages/pl-api",
|
||||
"repository": {
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
"multiselect-react-dropdown": "^2.0.25",
|
||||
"mutative": "^1.1.0",
|
||||
"path-browserify": "^1.0.1",
|
||||
"pl-api": "^1.0.0-rc.48",
|
||||
"pl-api": "^1.0.0-rc.49",
|
||||
"postcss": "^8.5.3",
|
||||
"process": "^0.11.10",
|
||||
"punycode": "^2.1.1",
|
||||
|
||||
@ -6848,10 +6848,10 @@ pkg-dir@^4.1.0:
|
||||
dependencies:
|
||||
find-up "^4.0.0"
|
||||
|
||||
pl-api@^1.0.0-rc.48:
|
||||
version "1.0.0-rc.48"
|
||||
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-1.0.0-rc.48.tgz#0401e5481c244cfea33935fe7d9c625d005f9aad"
|
||||
integrity sha512-LNCLBhX12XHWpDFN1KN3EsFX3uKkS4jXoyY39PJgr7YL2GZkAZI3B3G5EEzcNvKTwDWuWSf+XflejWusSaq7Aw==
|
||||
pl-api@^1.0.0-rc.49:
|
||||
version "1.0.0-rc.49"
|
||||
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-1.0.0-rc.49.tgz#07229ee2afa6552a4840666a2abbf89a723d9b09"
|
||||
integrity sha512-2WCyY44NwRD0IOrav2Cwip3ZU38WuxFsWN47jXbeQxuC6/1xnf7q0g413jQarU0l7x3skHvOZesXywdgJSw9QQ==
|
||||
dependencies:
|
||||
blurhash "^2.0.5"
|
||||
http-link-header "^1.1.3"
|
||||
|
||||
Reference in New Issue
Block a user