This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@@ -11,20 +11,20 @@ export const meta = {
params: {
body: {
validator: $.str
validator: $.str,
},
header: {
validator: $.optional.nullable.str
validator: $.optional.nullable.str,
},
icon: {
validator: $.optional.nullable.str
validator: $.optional.nullable.str,
},
},
errors: {
}
},
};
export default define(meta, async (ps, user, token) => {

View File

@@ -7,7 +7,7 @@ export const meta = {
requireCredential: true as const,
kind: 'write:notifications'
kind: 'write:notifications',
};
export default define(meta, async (ps, user) => {
@@ -16,7 +16,7 @@ export default define(meta, async (ps, user) => {
notifieeId: user.id,
isRead: false,
}, {
isRead: true
isRead: true,
});
// 全ての通知を読みましたよというイベントを発行

View File

@@ -23,7 +23,7 @@ export const meta = {
noSuchNotification: {
message: 'No such notification.',
code: 'NO_SUCH_NOTIFICATION',
id: 'efa929d5-05b5-47d1-beec-e6a4dbed011e'
id: 'efa929d5-05b5-47d1-beec-e6a4dbed011e',
},
},
};