Skip to content

Commit

Permalink
camel-twitter: removed the truncation
Browse files Browse the repository at this point in the history
Twitter status updates were truncated to 160 chars if they were longer.
However the twitter limit is 140 chars, so this truncation didn't have
any effect and I removed it.
  • Loading branch information
binfalse committed Apr 10, 2016
1 parent b31266e commit b96035b
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -63,11 +63,6 @@ private Status updateStatus(StatusUpdate status) throws Exception {
}

private Status updateStatus(String status) throws Exception {
if (status.length() > 160) {
log.warn("Message is longer than 160 characters. Message will be truncated!");
status = status.substring(0, 160);
}

Status response = endpoint.getProperties().getTwitter().updateStatus(status);
log.debug("Updated status: {}", status);
log.debug("Status id: {}", response.getId());
Expand Down

0 comments on commit b96035b

Please sign in to comment.