aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/TwitterManager.java
diff options
context:
space:
mode:
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()