1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-23 14:46:40 +09:00

fix(server): 空のアンテナが作成できるのを修正

This commit is contained in:
syuilo 2023-03-24 16:01:35 +09:00
parent f01e6ef6bf
commit ab26a8016d
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@
### Server
- リモートユーザーのチャート生成を無効にするオプションを追加
- 空のアンテナが作成できるのを修正
## 13.10.2

View File

@ -79,7 +79,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
private globalEventService: GlobalEventService,
) {
super(meta, paramDef, async (ps, me) => {
if (ps.keywords.length === 0) {
if ((ps.keywords.length === 0) || (ps.keywords[0].filter(x => x !== '').length === 0)) {
throw new Error('invalid param');
}