aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/api/Messages.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-05-19 23:24:22 +0300
committerGravatar Vitaly Takmazov2016-05-19 23:24:22 +0300
commit7fb8cdfb02c24c265a081499c858f3aca1efbb2b (patch)
tree87f8764cf0baf4d3dc6de7b2d19fda827a16b1cb /src/main/java/com/juick/api/Messages.java
parentce8cef088e7fa1b31a5aa59bb3111600863bc432 (diff)
update server api and try to fix anonymous chats
Diffstat (limited to 'src/main/java/com/juick/api/Messages.java')
-rw-r--r--src/main/java/com/juick/api/Messages.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/api/Messages.java b/src/main/java/com/juick/api/Messages.java
index d86193f1..18c868f4 100644
--- a/src/main/java/com/juick/api/Messages.java
+++ b/src/main/java/com/juick/api/Messages.java
@@ -165,7 +165,7 @@ public class Messages {
msg.from = new JID("juick", "juick.com", null);
msg.to = new JID(null, "crosspost.juick.com", null);
JuickMessage jmsg = new JuickMessage(m);
- jmsg.setUser(UserQueries.getUserByUID(sql, 11574));
+ jmsg.setUser(UserQueries.getUserByUID(sql, 11574).get());
msg.childs.add(jmsg);
msg.to.Username = "twitter";