pl-api: Support Pleroma 2.9.0

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2025-03-01 16:58:52 +01:00
parent 8fc01af41c
commit 7701c7fdfe
4 changed files with 9 additions and 9 deletions

View File

@ -629,7 +629,7 @@ const getFeatures = (instance: Instance) => {
v.software === MASTODON && gte(v.compatVersion, '4.1.0'),
v.software === PIXELFED,
v.software === PLEROMA && v.build === AKKOMA,
v.software === PLEROMA && v.build === PL,
v.software === PLEROMA && gte(v.version, '2.9.0'),
v.software === TAKAHE && gte(v.version, '0.9.0'),
]),
@ -643,7 +643,7 @@ const getFeatures = (instance: Instance) => {
v.software === MASTODON && gte(v.compatVersion, '4.0.0'),
v.software === PIXELFED,
v.software === PLEROMA && v.build === AKKOMA,
v.software === PLEROMA && v.build === PL,
v.software === PLEROMA && gte(v.version, '2.9.0'),
v.software === TAKAHE && gte(v.version, '0.9.0'),
]),
@ -1058,7 +1058,7 @@ const getFeatures = (instance: Instance) => {
postLanguages: any([
v.software === MASTODON,
v.software === PLEROMA && v.build === AKKOMA,
v.software === PLEROMA && v.build === PL,
v.software === PLEROMA && gte(v.version, '2.9.0'),
v.software === GOTOSOCIAL,
]),

View File

@ -1,6 +1,6 @@
{
"name": "pl-api",
"version": "1.0.0-rc.27",
"version": "1.0.0-rc.28",
"type": "module",
"homepage": "https://github.com/mkljczk/pl-fe/tree/develop/packages/pl-api",
"repository": {

View File

@ -102,7 +102,7 @@
"multiselect-react-dropdown": "^2.0.25",
"mutative": "^1.1.0",
"path-browserify": "^1.0.1",
"pl-api": "^1.0.0-rc.27",
"pl-api": "^1.0.0-rc.28",
"postcss": "^8.4.49",
"process": "^0.11.10",
"punycode": "^2.1.1",

View File

@ -7548,10 +7548,10 @@ pkg-dir@^4.1.0:
dependencies:
find-up "^4.0.0"
pl-api@^1.0.0-rc.27:
version "1.0.0-rc.27"
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-1.0.0-rc.27.tgz#0d8fb221e6a18be0a81a09c1d19b25e686be3e00"
integrity sha512-BmmdK6JSnj2kLaawalN9C4hymta2hCeWG1zhILJfMhHUxUCFzPlX/PkyjfOZEFLek2EbbRZe/Yd64Z1PovXB0w==
pl-api@^1.0.0-rc.28:
version "1.0.0-rc.28"
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-1.0.0-rc.28.tgz#2e4bf89739fe16d50b7934b289f86c9861cdf77f"
integrity sha512-cWu2O/I956+smMXh+PzkFNQLMwNEgJ1IOadoth7zLI6M4sh+WavF5eAFo0Q9UIRL5NLb8BucDK9FygYGZ/MBHw==
dependencies:
blurhash "^2.0.5"
http-link-header "^1.1.3"