summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--locales/index.d.ts8
-rw-r--r--locales/ja-JP.yml2
-rw-r--r--packages/frontend/src/pages/settings/notifications.vue2
-rw-r--r--packages/misskey-js/etc/misskey-js.api.md2
-rw-r--r--packages/misskey-js/src/consts.ts1
5 files changed, 12 insertions, 3 deletions
diff --git a/locales/index.d.ts b/locales/index.d.ts
index fe3e07fcfa..9e51d89760 100644
--- a/locales/index.d.ts
+++ b/locales/index.d.ts
@@ -10482,6 +10482,14 @@ export interface Locale extends ILocale {
*/
"pollEnded": string;
/**
+ * 予約投稿が成功した
+ */
+ "scheduledNotePosted": string;
+ /**
+ * 予約投稿が失敗した
+ */
+ "scheduledNotePostFailed": string;
+ /**
* フォロー申請を受け取った
*/
"receiveFollowRequest": string;
diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index 8306a862e1..bfcc98243c 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -2768,6 +2768,8 @@ _notification:
quote: "引用"
reaction: "リアクション"
pollEnded: "アンケートが終了"
+ scheduledNotePosted: "予約投稿が成功した"
+ scheduledNotePostFailed: "予約投稿が失敗した"
receiveFollowRequest: "フォロー申請を受け取った"
followRequestAccepted: "フォローが受理された"
roleAssigned: "ロールが付与された"
diff --git a/packages/frontend/src/pages/settings/notifications.vue b/packages/frontend/src/pages/settings/notifications.vue
index 64d61c0bee..2802d3263e 100644
--- a/packages/frontend/src/pages/settings/notifications.vue
+++ b/packages/frontend/src/pages/settings/notifications.vue
@@ -85,7 +85,7 @@ const $i = ensureSignin();
const nonConfigurableNotificationTypes = ['note', 'roleAssigned', 'followRequestAccepted', 'test', 'exportCompleted'] satisfies (typeof notificationTypes[number])[] as string[];
-const onlyOnOrOffNotificationTypes = ['app', 'achievementEarned', 'login', 'createToken'] satisfies (typeof notificationTypes[number])[] as string[];
+const onlyOnOrOffNotificationTypes = ['app', 'achievementEarned', 'login', 'createToken', 'scheduledNotePosted', 'scheduledNotePostFailed'] satisfies (typeof notificationTypes[number])[] as string[];
const allowButton = useTemplateRef('allowButton');
const pushRegistrationInServer = computed(() => allowButton.value?.pushRegistrationInServer);
diff --git a/packages/misskey-js/etc/misskey-js.api.md b/packages/misskey-js/etc/misskey-js.api.md
index fab205b939..32af619a49 100644
--- a/packages/misskey-js/etc/misskey-js.api.md
+++ b/packages/misskey-js/etc/misskey-js.api.md
@@ -3226,7 +3226,7 @@ type Notification_2 = components['schemas']['Notification'];
type NotificationsCreateRequest = operations['notifications___create']['requestBody']['content']['application/json'];
// @public (undocumented)
-export const notificationTypes: readonly ["note", "follow", "mention", "reply", "renote", "quote", "reaction", "pollEnded", "scheduledNotePosted", "scheduledNotePostFailed", "receiveFollowRequest", "followRequestAccepted", "groupInvited", "app", "roleAssigned", "chatRoomInvitationReceived", "achievementEarned", "exportCompleted", "test", "login", "createToken"];
+export const notificationTypes: readonly ["note", "follow", "mention", "reply", "renote", "quote", "reaction", "pollEnded", "scheduledNotePosted", "scheduledNotePostFailed", "receiveFollowRequest", "followRequestAccepted", "app", "roleAssigned", "chatRoomInvitationReceived", "achievementEarned", "exportCompleted", "test", "login", "createToken"];
// @public (undocumented)
export function nyaize(text: string): string;
diff --git a/packages/misskey-js/src/consts.ts b/packages/misskey-js/src/consts.ts
index 148c5ed831..eb6c5cd1b0 100644
--- a/packages/misskey-js/src/consts.ts
+++ b/packages/misskey-js/src/consts.ts
@@ -30,7 +30,6 @@ export const notificationTypes = [
'scheduledNotePostFailed',
'receiveFollowRequest',
'followRequestAccepted',
- 'groupInvited',
'app',
'roleAssigned',
'chatRoomInvitationReceived',