aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/java/com/juick/www')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/NewMessage.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java b/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java
index b93d6f57..07605830 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java
@@ -149,7 +149,7 @@ public class NewMessage {
subscriptionService.subscribeMessage(mid, visitor.getUid());
Message xmsg = new Message();
- xmsg.setFrom(Jid.of("juick@juick.com"));
+ xmsg.setFrom(botJid);
xmsg.setType(Message.Type.CHAT);
xmsg.setThread("juick-" + mid);
@@ -182,7 +182,7 @@ public class NewMessage {
xmsg.setBody("Reply by @" + jmsg.getUser().getName() + ":\n>" + quote + "\n" + body + "\n\n#" +
mid + "/" + ridnew + " http://juick.com/" + mid + "#" + ridnew);
- xmsg.setTo(Jid.of("juick@juick.com"));
+ xmsg.setTo(botJid);
xmpp.send(xmsg);
} else {
logger.warn("XMPP unavailable");
@@ -218,8 +218,8 @@ public class NewMessage {
if (pmQueriesService.createPM(visitor.getUid(), userTo.getUid(), body)) {
if (xmpp.isConnected()) {
Message msg = new Message();
- msg.setFrom(Jid.of("juick@juick.com"));
- msg.setTo(Jid.of("pm@juick.com"));
+ msg.setFrom(botJid);
+ msg.setTo(botJid.withLocal("pm"));
com.juick.Message jmsg = new com.juick.Message();
jmsg.setUser(visitor);
jmsg.setText(body);