Skip to content

Commit

Permalink
fix: notRespondingSinceが実装される前に不通になったインスタンスが自動的に配信停止にならない (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Jun 21, 2024
1 parent 6863471 commit a5a6e74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Client

### Server
- Fix: notRespondingSinceが実装される前に不通になったインスタンスが自動的に配信停止にならない (pick #14059)

## 2024.5.0-kinel.2

Expand Down
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 a5a6e74

Please sign in to comment.