Improve display of parsed links.
[Sone.git] / src / main / java / net / pterodactylus / sone / template / PostAccessor.java
index 495d805..d5dd406 100644 (file)
@@ -79,7 +79,10 @@ public class PostAccessor extends ReflectionAccessor {
                                return null;
                        }
                        try {
-                               return linkParser.parse(new StringReader(text));
+                               synchronized (linkParser) {
+                                       linkParser.setPostingSone(post.getSone());
+                                       return linkParser.parse(new StringReader(text));
+                               }
                        } catch (IOException ioe1) {
                                /* ignore. */
                        }