Node.js based forum software built for the modern web
fix double anchors around images
barisusakli1a97302d6835
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.jsindex 3df4a2b1c3..0300d58121 100644--- a/public/src/forum/topic.js+++ b/public/src/forum/topic.js@@ -351,7 +351,10 @@ define('forum/topic', dependencies, function(pagination, infinitescroll, threadTutils.makeNumbersHumanReadable(element.find('.human-readable-number'));element.find('span.timeago').timeago();element.find('.post-content img:not(.emoji)').addClass('img-responsive').each(function() {- $(this).wrap('<a href="' + $(this).attr('src') + '" target="_blank">');+ var $this = $(this);+ if (!$this.parent().is('a')) {+ $this.wrap('<a href="' + $this.attr('src') + '" target="_blank">');+ }});postTools.updatePostCount();showBottomPostBar();