parent
918a96da24
commit
34492f3c9a
5 changed files with 16 additions and 29 deletions
|
@ -79,10 +79,7 @@ export class DeliverProcessorService {
|
|||
// Update stats
|
||||
this.federatedInstanceService.fetch(host).then(i => {
|
||||
if (i.isNotResponding) {
|
||||
this.instancesRepository.update(i.id, {
|
||||
isNotResponding: false,
|
||||
});
|
||||
this.federatedInstanceService.updateCachePartial(host, {
|
||||
this.federatedInstanceService.update(i.id, {
|
||||
isNotResponding: false,
|
||||
});
|
||||
}
|
||||
|
@ -101,10 +98,7 @@ export class DeliverProcessorService {
|
|||
// Update stats
|
||||
this.federatedInstanceService.fetch(host).then(i => {
|
||||
if (!i.isNotResponding) {
|
||||
this.instancesRepository.update(i.id, {
|
||||
isNotResponding: true,
|
||||
});
|
||||
this.federatedInstanceService.updateCachePartial(host, {
|
||||
this.federatedInstanceService.update(i.id, {
|
||||
isNotResponding: true,
|
||||
});
|
||||
}
|
||||
|
@ -123,10 +117,7 @@ export class DeliverProcessorService {
|
|||
// 相手が閉鎖していることを明示しているため、配送停止する
|
||||
if (job.data.isSharedInbox && res.statusCode === 410) {
|
||||
this.federatedInstanceService.fetch(host).then(i => {
|
||||
this.instancesRepository.update(i.id, {
|
||||
isSuspended: true,
|
||||
});
|
||||
this.federatedInstanceService.updateCachePartial(host, {
|
||||
this.federatedInstanceService.update(i.id, {
|
||||
isSuspended: true,
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue