| @@ -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, | ||||
| 							}); | ||||
| 						}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo