aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-01 13:37:13 +0300
committerGravatar Vitaly Takmazov2018-11-01 13:37:13 +0300
commit1119d6f0024fd43e8b75acfb420a1c31bb7503a2 (patch)
tree4a224179914b388eba73d88789c596137ac37e1d /juick-server/src/main/java/com/juick
parent85635be4234cad5f6d4ce73b1413b67d2abab586 (diff)
fix DeleteUserEvent publication
Diffstat (limited to 'juick-server/src/main/java/com/juick')
-rw-r--r--juick-server/src/main/java/com/juick/server/configuration/ActivityPubClientConfig.java6
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