From 1119d6f0024fd43e8b75acfb420a1c31bb7503a2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 1 Nov 2018 13:37:13 +0300 Subject: fix DeleteUserEvent publication --- .../com/juick/server/configuration/ActivityPubClientConfig.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'juick-server/src/main') 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 -- cgit v1.2.3