Skip to content

Commit

Permalink
feat: 応答がないインスタンスがいつから応答がなくなったかをクライアントに送信するようにしました (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Jun 20, 2024
1 parent ec32435 commit 7a3f77e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Enhance: `vmimiRelayTimelineImplemented``disableVmimiRelayTimeline` nodeinfo に追加しました
- これによりサードパーティクライアントがVRTLの有無を認知できるようになりました。
- Enhance: VRTL参加サーバーの取得に失敗したときのリトライの間隔を短く
- Enhance: 応答がないインスタンスがいつから応答がなくなったかをクライアントに送信するようにしました
- Fix: 自分自身に対するリプライがwithReplies = falseなVRTL/VSTLにて含まれていない問題を修正
- チャート生成時にinstance.suspentionStateに置き換えられたinstance.isSuspendedが参照されてしまう問題を修正

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions packages/misskey-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 7a3f77e

Please sign in to comment.