Skip to content

Node.js based forum software built for the modern web

fixing new post parsing to not add img-responsive to avatars

Julian Lamc987b8474ea1
diff --git a/public/src/client/categories.js b/public/src/client/categories.js
index 672fa38cf9..bd27aed0a2 100644
--- a/public/src/client/categories.js
+++ b/public/src/client/categories.js
@@ -63,7 +63,7 @@ define('forum/categories', ['components', 'translator'], function (components, t
templates.parse('categories', '(categories.)?posts', {categories: {posts: posts}}, function (html) {
translator.translate(html, function (translatedHTML) {
translatedHTML = $(translatedHTML);
- translatedHTML.find('img:not(.not-responsive)').addClass('img-responsive');
+ translatedHTML.find('.post-content img:not(.not-responsive)').addClass('img-responsive');
callback(translatedHTML);
});