feat: 絵文字のホーム通知

This commit is contained in:
mattyatea 2023-12-09 19:05:27 +09:00
parent b7f9ad1944
commit da83bc315a
6 changed files with 15 additions and 19 deletions

View file

@ -38,6 +38,7 @@ export const paramDef = {
fileId: { type: 'string', format: 'misskey:id' },
isSensitive: { type: 'boolean' },
localOnly: { type: 'boolean' },
isNotifyIsHome: { type: 'boolean', default: false },
},
required: ['name', 'fileId'],
} as const;
@ -84,6 +85,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
if (EmojiBotToken){
const data_Miss = {
'i': EmojiBotToken,
'visibility': ps.isNotifyIsHome ? 'home' : 'public',
'text':
'絵文字名 : :' + ps.name + ':\n' +
'カテゴリ : ' + ps.category + '\n' +