diff options
author | Vitaly Takmazov | 2018-05-21 15:50:36 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-05-21 16:09:14 +0300 |
commit | c7c2b377642a337edc303756836c9f0843cdc145 (patch) | |
tree | 846b6bfc126d6a3451597a0ca3c1110088347684 /juick-server/src/main/java/com/juick/server/TwitterManager.java | |
parent | 1179cdc5ba750c87783e442afeb202026ddd458d (diff) |
juick.com/m/ links
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/TwitterManager.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/TwitterManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/server/TwitterManager.java b/juick-server/src/main/java/com/juick/server/TwitterManager.java index 411298bc..9b83b197 100644 --- a/juick-server/src/main/java/com/juick/server/TwitterManager.java +++ b/juick-server/src/main/java/com/juick/server/TwitterManager.java @@ -52,8 +52,8 @@ public class TwitterManager implements NotificationListener { void twitterPost(final com.juick.Message jmsg) { crosspostService.getTwitterToken(jmsg.getUser().getUid()).ifPresent(t -> { String status = MessageUtils.getMessageHashTags(jmsg) + StringUtils.defaultString(jmsg.getText()); - if (status.length() > 255) { - status = status.substring(0, 254) + "…"; + if (status.length() > 253) { + status = status.substring(0, 252) + "…"; } status += " http://juick.com/" + jmsg.getMid(); ConfigurationBuilder configurationBuilder = new ConfigurationBuilder() |