pl-fe: non-pleroma admin dashboard improvements
Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
@ -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',
|
||||
|
||||
@ -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'),
|
||||
]),
|
||||
|
||||
|
||||
@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user