mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix wrong post count on new post
This commit is contained in:
@@ -22,8 +22,8 @@ define('forum/topic/posts', [
|
||||
}
|
||||
|
||||
for (var i=0; i<data.posts.length; ++i) {
|
||||
var postcount = components.get('user/postcount', data.posts[i].uid);
|
||||
postcount.html(parseInt(postcount.html(), 10) + 1);
|
||||
var postcount = components.get('user/postcount', data.posts[i].uid).attr('data-postcount');
|
||||
postcount.html(parseInt(postcount, 10) + 1);
|
||||
}
|
||||
|
||||
createNewPosts(data, components.get('post').not('[data-index=0]'), function(html) {
|
||||
|
||||
Reference in New Issue
Block a user