diff options
author | Vitaly Takmazov | 2018-11-01 13:37:13 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-11-01 13:37:13 +0300 |
commit | 1119d6f0024fd43e8b75acfb420a1c31bb7503a2 (patch) | |
tree | 4a224179914b388eba73d88789c596137ac37e1d /juick-server/src/main | |
parent | 85635be4234cad5f6d4ce73b1413b67d2abab586 (diff) |
fix DeleteUserEvent publication
Diffstat (limited to 'juick-server/src/main')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java b/juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java index ad26582a..9bc1b656 100644 --- a/juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java +++ b/juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java @@ -5,14 +5,18 @@ import org.springframework.context.annotation.Configuration; import org.springframework.http.client.SimpleClientHttpRequestFactory; import org.springframework.web.client.RestTemplate; +import javax.inject.Inject; + @Configuration public class ActivityPubClientConfig { + @Inject + ActivityPubClientErrorHandler activityPubClientErrorHandler; @Bean public RestTemplate apClient() { SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory(); requestFactory.setOutputStreaming(false); RestTemplate restTemplate = new RestTemplate(requestFactory); - restTemplate.setErrorHandler(new ActivityPubClientErrorHandler()); + restTemplate.setErrorHandler(activityPubClientErrorHandler); return restTemplate; } }
\ No newline at end of file |