aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/XMPPManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/XMPPManager.java')
-rw-r--r--src/main/java/com/juick/XMPPManager.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/com/juick/XMPPManager.java b/src/main/java/com/juick/XMPPManager.java
index 8b775495..b42b4b9f 100644
--- a/src/main/java/com/juick/XMPPManager.java
+++ b/src/main/java/com/juick/XMPPManager.java
@@ -115,11 +115,9 @@ public class XMPPManager implements NotificationListener {
private PMQueriesService pmQueriesService;
@Inject
private Executor applicationTaskExecutor;
- @Value("${service_user:juick}")
- private String serviceUsername;
@Inject
private WebApp webApp;
-
+ @Inject
private User serviceUser;
@PostConstruct
@@ -263,7 +261,6 @@ public class XMPPManager implements NotificationListener {
logger.warn("xmpp exception", e);
}
});
- serviceUser = userService.getUserByName(serviceUsername);
}
private void sendJuickMessage(com.juick.model.Message jmsg, List<User> users) {