From 7f957348911140486a1e0e4e55dd08521ba5ab70 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sun, 22 Jun 2025 11:09:47 -0400 Subject: [PATCH] add missing permission nodes to UI --- locales/index.d.ts | 8 ++++++++ packages/misskey-js/src/consts.ts | 2 ++ sharkey-locales/en-US.yml | 2 ++ 3 files changed, 12 insertions(+) diff --git a/locales/index.d.ts b/locales/index.d.ts index 8577b7a4ec..5c94d7174f 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -9244,6 +9244,14 @@ export interface Locale extends ILocale { * Compose or delete scheduled notes */ "write:notes-schedule": string; + /** + * Read abuse report notification recipients + */ + "read:admin:abuse-report:notification-recipient": string; + /** + * Edit abuse report notification recipients + */ + "write:admin:abuse-report:notification-recipient": string; }; "_auth": { /** diff --git a/packages/misskey-js/src/consts.ts b/packages/misskey-js/src/consts.ts index 51c6c85053..37be439eda 100644 --- a/packages/misskey-js/src/consts.ts +++ b/packages/misskey-js/src/consts.ts @@ -71,6 +71,8 @@ export const permissions = [ 'read:admin:meta', 'write:admin:reset-password', 'write:admin:resolve-abuse-user-report', + 'read:admin:abuse-report:notification-recipient', + 'write:admin:abuse-report:notification-recipient', 'write:admin:send-email', 'read:admin:server-info', 'read:admin:show-moderation-log', diff --git a/sharkey-locales/en-US.yml b/sharkey-locales/en-US.yml index f49b13c2fb..5e3ae3ac18 100644 --- a/sharkey-locales/en-US.yml +++ b/sharkey-locales/en-US.yml @@ -522,6 +522,8 @@ _permissions: "write:admin:reject-quotes": "Allow/Prohibit quote posts from a user" "read:notes-schedule": "View your list of scheduled notes" "write:notes-schedule": "Compose or delete scheduled notes" + "read:admin:abuse-report:notification-recipient": "Read abuse report notification recipients" + "write:admin:abuse-report:notification-recipient": "Edit abuse report notification recipients" robotsTxt: "Custom robots.txt" robotsTxtDescription: "Adding entries here will override the default robots.txt packaged with Sharkey."