Skip to content

Node.js based forum software built for the modern web

Fix posts block usage in categories page

Peter Jaszkowiakcfba8970e1b1
diff --git a/public/src/client/categories.js b/public/src/client/categories.js
index 34afcb0a7e..8357ff8a29 100644
--- a/public/src/client/categories.js
+++ b/public/src/client/categories.js
@@ -58,7 +58,7 @@ define('forum/categories', ['components', 'translator', 'benchpress'], function
}
function parseAndTranslate(posts, callback) {
- Benchpress.parse('categories', '(categories\\.)?posts', { categories: { posts: posts } }, function (html) {
+ Benchpress.parse('partials/categories/lastpost', 'posts', { posts: posts }, function (html) {
translator.translate(html, function (translatedHTML) {
translatedHTML = $(translatedHTML);
translatedHTML.find('.post-content img:not(.not-responsive)').addClass('img-responsive');