aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/NewMessage.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-31 02:27:41 +0300
committerGravatar Vitaly Takmazov2016-07-31 02:27:41 +0300
commit0c2ac00e800b2ed5f73a7abb9922b87329a077de (patch)
treea3a55916d815dc923ace39b6bce33d4daad6448d /juick-www/src/main/java/com/juick/www/NewMessage.java
parent2b4b08c7954f5ae03681401b613318cfbfde1c76 (diff)
do not throw on Sape errors
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/NewMessage.java')
-rw-r--r--juick-www/src/main/java/com/juick/www/NewMessage.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-www/src/main/java/com/juick/www/NewMessage.java b/juick-www/src/main/java/com/juick/www/NewMessage.java
index 8efec54c..d4867999 100644
--- a/juick-www/src/main/java/com/juick/www/NewMessage.java
+++ b/juick-www/src/main/java/com/juick/www/NewMessage.java
@@ -228,7 +228,7 @@ public class NewMessage {
xoob.URL = attachmentURL;
xmsg.addChild(xoob);
}
- if (xmpp.isLoggedIn()) {
+ if (xmpp != null) {
String tagsStr2 = "";
for (String tag : tagsArr) {
@@ -399,7 +399,7 @@ public class NewMessage {
xmsg.addChild(xoob);
}
- if (xmpp.isLoggedIn()) {
+ if (xmpp != null) {
xmsg.body = "Reply by @" + jmsg.getUser().getUName() + ":\n>" + quote + "\n" + body + "\n\n#" + mid + "/" + ridnew + " http://juick.com/" + mid + "#" + ridnew;
@@ -437,7 +437,7 @@ public class NewMessage {
boolean res = MessagesQueries.recommendMessage(sql, mid, visitor.getUID());
if (res) {
- if (xmpp.isLoggedIn()) {
+ if (xmpp != null) {
Message xmsg = new Message();
xmsg.from = new JID("juick", "juick.com", null);
xmsg.to = new JID("recomm", "s2s.juick.com", null);