diff --git a/public/src/forum/category.js b/public/src/forum/category.js index 0472569989..c01a22b226 100644 --- a/public/src/forum/category.js +++ b/public/src/forum/category.js @@ -53,8 +53,8 @@ define(['composer'], function(composer) { li.setAttribute('data-pid', posts[i].pid); - li.innerHTML = '' + - '' + + li.innerHTML = '' + + '' + ''+ posts[i].username + '' + '

' + posts[i].content + diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 788a0c1718..0a64153249 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -406,10 +406,10 @@ define(['composer'], function(composer) { var activeEl = $('.thread_active_users'); function createUserIcon(uid, picture, userslug, username) { - if(!activeEl.find("[href='/user/"+ data.users[i].userslug + "']").length) { + if(!activeEl.find('[href="'+ RELATIVE_PATH +'/user/' + data.users[i].userslug + '"]').length) { var userIcon = $(''); - var userLink = $('').append(userIcon); + var userLink = $('').append(userIcon); userLink.attr('data-uid', uid); var div = $('

');