aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/CrosspostManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/CrosspostManager.java')
-rw-r--r--juick-server/src/main/java/com/juick/server/CrosspostManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/CrosspostManager.java b/juick-server/src/main/java/com/juick/server/CrosspostManager.java
index f518c111..bfd5af30 100644
--- a/juick-server/src/main/java/com/juick/server/CrosspostManager.java
+++ b/juick-server/src/main/java/com/juick/server/CrosspostManager.java
@@ -72,7 +72,11 @@ public class CrosspostManager {
}
status += " http://juick.com/" + jmsg.getMid();
Twitter twitter = new TwitterTemplate(twitter_consumer_key, twitter_consumer_secret, t.getToken(), t.getSecret());
- twitter.timelineOperations().updateStatus(status);
+ try {
+ twitter.timelineOperations().updateStatus(status);
+ } catch (Exception e) {
+ logger.info("Twitter exception", e);
+ }
});
}
}