logger.log(Level.FINE, String.format("Tried to create post for non-local Sone: %s", sone));
return null;
}
- final Post post = new PostImpl(sone, time, text);
+ final Post post = new PostImpl(sone, time, text.trim());
if (recipient != null) {
post.setRecipient(recipient);
}
logger.log(Level.FINE, String.format("Tried to create reply for non-local Sone: %s", sone));
return null;
}
- final PostReply reply = new PostReply(sone, post, System.currentTimeMillis(), text);
+ final PostReply reply = new PostReply(sone, post, System.currentTimeMillis(), text.trim());
synchronized (replies) {
replies.put(reply.getId(), reply);
}