-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance(backend): 配送先が410 Goneで応答してきた場合配送停止するように #10298
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #10298 +/- ##
===========================================
- Coverage 74.11% 74.10% -0.02%
===========================================
Files 809 809
Lines 77565 77577 +12
Branches 5481 5481
===========================================
Hits 57491 57491
- Misses 20074 20086 +12
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
CHANGELOGあった方が良さそう |
… instance-auto-suspend
CHANGELOG書いた |
🙏🙏 |
// 相手が閉鎖していることを明示しているため、配送停止する | ||
if (res.statusCode === 410) { | ||
this.federatedInstanceService.fetch(host).then(i => { | ||
this.instancesRepository.update(i.id, { | ||
isSuspended: true, | ||
}); | ||
this.federatedInstanceService.updateCachePartial(host, { | ||
isSuspended: true, | ||
}); | ||
}); | ||
return `${host} is gone`; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sharedInboxに配送して410を返されるパターンの他に、削除済みユーザー個人のinboxに配送して410を返されるパターンがあって、後者の場合はホスト全体を配送停止してはいけない。
なので、配送先がsharedInboxなのかinboxなのかをキューに持たせといて、sharedInboxへの配送が410だった場合のみ停止しないといけない。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What
Resolve #9807
Why
メンテナンスコスト削減
Checklist