Skip to content
Snippets Groups Projects
Commit 63068fc0 authored by syuilo's avatar syuilo
Browse files

fix(server): prevent creation of empty antennas

parent a8bd3e8e
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ You should also include the user name that made the change.
- Bookwyrmのユーザーのプロフィールページで「リモートで表示」をタップしても反応がない問題を修正
- `disableCache: true`を設定している場合に絵文字管理操作でエラーが出る問題を修正
- リテンション分析が上手く機能しないことがあるのを修正
- 空のアンテナが作成できないように修正
## 13.9.2 (2023/03/06)
......
......@@ -79,6 +79,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
private globalEventService: GlobalEventService,
) {
super(meta, paramDef, async (ps, me) => {
if (ps.keywords.length === 0) {
throw new Error('invalid param');
}
const currentAntennasCount = await this.antennasRepository.countBy({
userId: me.id,
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment