Use option value for cutting off posts.
[Sone.git] / src / main / resources / templates / include / viewPost.html
index 62df741..43e9ea4 100644 (file)
@@ -23,7 +23,7 @@
                        <%/if>
                        <% post.text|html|store key=originalText text=true>
                        <% post.text|parse sone=post.sone|store key=parsedText text=true>
-                       <% post.text|parse sone=post.sone length=200|store key=shortText text=true>
+                       <% post.text|parse sone=post.sone length=core.preferences.charactersPerPost|store key=shortText text=true>
                        <div class="post-text raw-text<%if !raw> hidden<%/if>"><% originalText></div>
                        <div class="post-text text<%if raw> hidden<%/if><%if !shortText|match key=parsedText> hidden<%/if>"><% parsedText></div>
                        <div class="post-text short-text<%if raw> hidden<%/if><%if shortText|match key=parsedText> hidden<%/if>"><% shortText></div>