From 2801946226f8b199db1dabfe9c4fe2987a57a877 Mon Sep 17 00:00:00 2001 From: meron Date: Fri, 21 Jul 2023 10:06:11 +0900 Subject: [PATCH] =?UTF-8?q?fix(server):=20=E3=82=A2=E3=83=B3=E3=83=86?= =?UTF-8?q?=E3=83=8A=E5=86=8D=E6=9C=89=E5=8A=B9=E3=81=AE=E6=89=8B=E6=AE=B5?= =?UTF-8?q?=E3=81=AB=E3=82=A2=E3=83=B3=E3=83=86=E3=83=8A=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E3=81=AE=E6=9B=B4=E6=96=B0=E3=82=92=E8=BF=BD=E5=8A=A0=20(#1103?= =?UTF-8?q?6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(server): アンテナ再有効の手段にアンテナの表示とアンテナ設定の更新を追加 * 無効+Redisも空なアンテナの再有効化手段を antennas/update だけに --- CHANGELOG.md | 3 +++ packages/backend/src/server/api/endpoints/antennas/update.ts | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e0d8ccf5..b223cdeaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,6 +71,9 @@ - Fix: インスタンスのアイコンがbase64の場合の挙動を修正 - Fix: ローカルの `Person` を指す `acct` URI を解析するときのバグを修正しました +### Server +- Fix: 無効化されたアンテナは設定変更時にも再度有効化されるように + ## 13.13.2 ### General diff --git a/packages/backend/src/server/api/endpoints/antennas/update.ts b/packages/backend/src/server/api/endpoints/antennas/update.ts index 5f980bdbe..55218b644 100644 --- a/packages/backend/src/server/api/endpoints/antennas/update.ts +++ b/packages/backend/src/server/api/endpoints/antennas/update.ts @@ -112,6 +112,8 @@ export default class extends Endpoint { withReplies: ps.withReplies, withFile: ps.withFile, notify: ps.notify, + isActive: true, + lastUsedAt: new Date(), }); this.globalEventService.publishInternalEvent('antennaUpdated', await this.antennasRepository.findOneByOrFail({ id: antenna.id }));