Skip to content

Commit

Permalink
fix: notRespondingSinceが実装される前に不通になったインスタンスが自動的に配信停止にならない
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Jun 21, 2024
1 parent a9012d3 commit b509060
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ export class DeliverProcessorService {
suspensionState: 'autoSuspendedForNotResponding',
});
}
} else {
// isNotRespondingがtrueでnotRespondingSinceがnullの場合はnotRespondingSinceをセット
// notRespondingSinceは新たな機能なので、それ以前のデータにはnotRespondingSinceがない場合がある
this.federatedInstanceService.update(i.id, {
notRespondingSince: new Date(),
});
}

this.apRequestChart.deliverFail();
Expand Down

0 comments on commit b509060

Please sign in to comment.