* enhance(backend): 配送先が410 Goneで応答してきた場合配送停止するように * Update CHANGELOG.md * Deliverキューのデータに宛先がSharedInboxかどうかのフラグを追加 * Fix lint * Mapを使用するように * Fix typo
This commit is contained in:
parent
3cb669a852
commit
c05c504c86
10 changed files with 32 additions and 27 deletions
|
@ -116,7 +116,7 @@ export class DeliverProcessorService {
|
|||
// 4xx
|
||||
if (res.isClientError) {
|
||||
// 相手が閉鎖していることを明示しているため、配送停止する
|
||||
if (res.statusCode === 410) {
|
||||
if (job.data.isSharedInbox && res.statusCode === 410) {
|
||||
this.federatedInstanceService.fetch(host).then(i => {
|
||||
this.instancesRepository.update(i.id, {
|
||||
isSuspended: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue