pl-api: Support NeoDB and Incarnator

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-06-27 12:24:58 +02:00
parent 8e98d669f7
commit a21a1d481e
2 changed files with 42 additions and 1 deletions

View File

@ -96,10 +96,15 @@ const fixVersion = (version: string) => {
return version.split('rc').join('-rc');
}
// Set Takahē version to a Pleroma-like string
if (version.startsWith('takahe/')) {
return `0.0.0 (compatible; Takahe ${version.slice(7)})`;
}
// Set NeoDB version to a Pleroma-like string
if (version.startsWith('neodb/')) {
return `0.0.0 (compatible; NeoDB ${version.slice(7)})`;
}
const wordPressMatch = WORDPRESS_REGEX.exec(version);