Skip to content

Node.js based forum software built for the modern web

fixes #299

psychobunnyb85e2545d631
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index bd4a46a143..3e6b572d3c 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -636,7 +636,7 @@
var scrollBottom = scrollTop + windowHeight;
if (scrollTop < 50 && postcount > 1) {
- postAuthorImage.src = (jQuery('.main-avatar img').attr('src'));
+ postAuthorImage.src = (jQuery('.main-post .avatar img').attr('src'));
mobileAuthorOverlay.innerHTML = 'Posted by ' + jQuery('.main-post').attr('data-username') + ', ' + jQuery('.main-post').find('.relativeTimeAgo').html();
pagination.innerHTML = '0 out of ' + postcount;
return;
@@ -675,4 +675,4 @@
window.onscroll = updateHeader;
window.onload = updateHeader;
-})();
\ No newline at end of file
+})();