X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewReply.html;h=3a5e59aa64af2193296d8360f391e94c540262c4;hb=e7afeda8d0658bd4c392803cf444f5810fe18471;hp=ab2044141c674d365430191e999050858a2ee4a0;hpb=352137865aaf496c90fac884bb77df4a916841af;p=Sone.git
diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html
index ab20441..3a5e59a 100644
--- a/src/main/resources/templates/include/viewReply.html
+++ b/src/main/resources/templates/include/viewReply.html
@@ -15,19 +15,32 @@
<% reply.text|html|store key==originalText text==true>
- <% reply.text|parse sone=reply.sone|store key==parsedText text==true>
- <% reply.text|parse sone=reply.sone length=core.preferences.charactersPerPost cut-off-length=core.preferences.postCutOffLength|store key==shortText text==true>
+ <% reply.text|parse sone=reply.sone|store key==parsedText>
+ <% parsedText|render|store key==renderedText text==true>
+ <% parsedText|shorten length=preferences.charactersPerPost cut-off-length=preferences.postCutOffLength|render|store key==shortText text==true>
<% originalText>
-
<% parsedText>
-
<% shortText>
- <%if !shortText|match value=parsedText><%if !raw>
<%= View.Post.ShowMore|l10n|html><%/if><%/if>
- <%if !shortText|match value=parsedText><%if !raw>
<%= View.Post.ShowLess|l10n|html><%/if><%/if>
+
<% renderedText>
+
<% shortText>
+ <%if !shortText|match value=renderedText><%if !raw>
<%= View.Post.ShowMore|l10n|html><%/if><%/if>
+ <%if !shortText|match value=renderedText><%if !raw>
<%= View.Post.ShowLess|l10n|html><%/if><%/if>
+ <% parsedText|linked-elements sone=reply.sone|store key==linkedElements>
+ <% foreach linkedElements linkedElement>
+ <%if !linkedElement.failed>
+ <% first>
+
+ <%/first>
+ <% linkedElement|render-linked-element>
+ <% last>
+
+ <%/last>
+ <%/if>
+ <%/foreach>