Render more parts.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 8 Jun 2011 09:24:04 +0000 (11:24 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 8 Jun 2011 09:24:04 +0000 (11:24 +0200)
src/main/java/net/pterodactylus/sone/template/ParserFilter.java

index 02d12f0..2122feb 100644 (file)
@@ -117,6 +117,14 @@ public class ParserFilter implements Filter {
                        render(writer, (PlainTextPart) part);
                } else if (part instanceof FreenetLinkPart) {
                        render(writer, (FreenetLinkPart) part);
+               } else if (part instanceof LinkPart) {
+                       render(writer, (LinkPart) part);
+               } else if (part instanceof SonePart) {
+                       render(writer, (SonePart) part);
+               } else if (part instanceof PostPart) {
+                       render(writer, (PostPart) part);
+               } else if (part instanceof Iterable<?>) {
+                       render(writer, (Iterable<Part>) part);
                }
        }