From: David ‘Bombe’ Roden Date: Fri, 24 Jul 2015 15:00:21 +0000 (+0200) Subject: Render link to old element ID differently in web interface X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=42be2dceeeaf1f14cc58de2e9f1325bd2c8605f8;p=Sone.git Render link to old element ID differently in web interface --- diff --git a/src/main/java/net/pterodactylus/sone/template/ParserFilter.java b/src/main/java/net/pterodactylus/sone/template/ParserFilter.java index ec35e2e..81af149 100644 --- a/src/main/java/net/pterodactylus/sone/template/ParserFilter.java +++ b/src/main/java/net/pterodactylus/sone/template/ParserFilter.java @@ -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. */ }