pl-fe: non-pleroma admin dashboard improvements

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2025-01-29 21:51:52 +01:00
parent 481a302944
commit 79eab987cd
7 changed files with 28 additions and 12 deletions

View File

@ -47,7 +47,7 @@ const preprocessAccount = v.transform((account: any) => {
discoverable: account.discoverable || account.pleroma?.source?.discoverable,
verified: account.verified || account.pleroma?.tags?.includes('verified'),
...(account.role?.permissions ? {
is_admin: account.role?.permissions & 0x1,
is_admin: (account.role?.permissions & 0x1) === 0x1,
} : {}),
...(pick(account.pleroma || {}, [
'ap_id',

View File

@ -877,6 +877,7 @@ const getFeatures = (instance: Instance) => {
* @see GET /api/v2/admin/accounts
*/
mastodonAdminV2: any([
v.software === GOTOSOCIAL,
v.software === MASTODON && gte(v.version, '3.5.0'),
]),

View File

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