Store in post part whether the internal ID was used to create this part
[Sone.git] / src / main / java / net / pterodactylus / sone / text / SoneTextParser.java
index 7194b89..1573d1c 100644 (file)
@@ -206,7 +206,7 @@ public class SoneTextParser implements Parser<SoneTextParserContext> {
                                        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));
                                                }