Render link to old element ID differently in web interface
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 24 Jul 2015 15:00:21 +0000 (17:00 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 24 Jul 2015 18:48:00 +0000 (20:48 +0200)
src/main/java/net/pterodactylus/sone/template/ParserFilter.java

index ec35e2e..81af149 100644 (file)
@@ -268,7 +268,8 @@ public class ParserFilter implements Filter {
                                        break;
                                }
                        }
-                       renderLink(writer, "viewPost.html?post=" + postPart.getPost().getId(), excerpt.toString(), SoneAccessor.getNiceName(postPart.getPost().getSone()), "in-sone");
+                       renderLink(writer, "viewPost.html?post=" + postPart.getPost().getId(), excerpt.toString(),
+                               SoneAccessor.getNiceName(postPart.getPost().getSone()), postPart.usesDeprecatedLink() ? "internet" : "in-sone");
                } catch (IOException ioe1) {
                        /* StringReader shouldn’t throw. */
                }