From 7a3f77ef47cdbc1af3cffded4a0c2d39ae13bb48 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Thu, 20 Jun 2024 12:25:32 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BF=9C=E7=AD=94=E3=81=8C=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=82=A4=E3=83=B3=E3=82=B9=E3=82=BF=E3=83=B3=E3=82=B9?= =?UTF-8?q?=E3=81=8C=E3=81=84=E3=81=A4=E3=81=8B=E3=82=89=E5=BF=9C=E7=AD=94?= =?UTF-8?q?=E3=81=8C=E3=81=AA=E3=81=8F=E3=81=AA=E3=81=A3=E3=81=9F=E3=81=8B?= =?UTF-8?q?=E3=82=92=E3=82=AF=E3=83=A9=E3=82=A4=E3=82=A2=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=81=AB=E9=80=81=E4=BF=A1=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=BE=E3=81=97=E3=81=9F=20(#204)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + packages/backend/src/core/entities/InstanceEntityService.ts | 1 + .../backend/src/models/json-schema/federation-instance.ts | 5 +++++ packages/misskey-js/src/autogen/types.ts | 2 ++ 4 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e1393dbef93..b2775938e04b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - Enhance: `vmimiRelayTimelineImplemented` と `disableVmimiRelayTimeline` nodeinfo に追加しました - これによりサードパーティクライアントがVRTLの有無を認知できるようになりました。 - Enhance: VRTL参加サーバーの取得に失敗したときのリトライの間隔を短く +- Enhance: 応答がないインスタンスがいつから応答がなくなったかをクライアントに送信するようにしました - Fix: 自分自身に対するリプライがwithReplies = falseなVRTL/VSTLにて含まれていない問題を修正 - チャート生成時にinstance.suspentionStateに置き換えられたinstance.isSuspendedが参照されてしまう問題を修正 diff --git a/packages/backend/src/core/entities/InstanceEntityService.ts b/packages/backend/src/core/entities/InstanceEntityService.ts index 9117b1391481..93ee84061645 100644 --- a/packages/backend/src/core/entities/InstanceEntityService.ts +++ b/packages/backend/src/core/entities/InstanceEntityService.ts @@ -39,6 +39,7 @@ export class InstanceEntityService { followingCount: instance.followingCount, followersCount: instance.followersCount, isNotResponding: instance.isNotResponding, + notRespondingSince: instance.notRespondingSince ? instance.notRespondingSince.toISOString() : null, isSuspended: instance.suspensionState !== 'none', suspensionState: instance.suspensionState, isBlocked: this.utilityService.isBlockedHost(meta.blockedHosts, instance.host), diff --git a/packages/backend/src/models/json-schema/federation-instance.ts b/packages/backend/src/models/json-schema/federation-instance.ts index ed40d405c66d..fdf01315b597 100644 --- a/packages/backend/src/models/json-schema/federation-instance.ts +++ b/packages/backend/src/models/json-schema/federation-instance.ts @@ -41,6 +41,11 @@ export const packedFederationInstanceSchema = { type: 'boolean', optional: false, nullable: false, }, + notRespondingSince: { + type: 'string', + optional: false, nullable: true, + format: 'date-time', + }, isSuspended: { type: 'boolean', optional: false, nullable: false, diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index d56520b6ddf7..033d8dc1fa4e 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -4520,6 +4520,8 @@ export type components = { followingCount: number; followersCount: number; isNotResponding: boolean; + /** Format: date-time */ + notRespondingSince: string | null; isSuspended: boolean; /** @enum {string} */ suspensionState: 'none' | 'manuallySuspended' | 'goneSuspended' | 'autoSuspendedForNotResponding';