if (linkType == LinkType.POST) {
Optional<Post> post = postProvider.getPost(link.substring(7));
if (post.isPresent()) {
- parts.add(new PostPart(post.get()));
+ parts.add(new PostPart(post.get(), link.substring(7).equals(post.get().getInternalId())));
} else {
parts.add(new PlainTextPart(link));
}