aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/TwitterManager.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-21 15:50:36 +0300
committerGravatar Vitaly Takmazov2018-05-21 16:09:14 +0300
commitc7c2b377642a337edc303756836c9f0843cdc145 (patch)
tree846b6bfc126d6a3451597a0ca3c1110088347684 /juick-server/src/main/java/com/juick/server/TwitterManager.java
parent1179cdc5ba750c87783e442afeb202026ddd458d (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.java4
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()