mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +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) {
|
for (var i=0; i<data.posts.length; ++i) {
|
||||||
var postcount = components.get('user/postcount', data.posts[i].uid);
|
var postcount = components.get('user/postcount', data.posts[i].uid).attr('data-postcount');
|
||||||
postcount.html(parseInt(postcount.html(), 10) + 1);
|
postcount.html(parseInt(postcount, 10) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
createNewPosts(data, components.get('post').not('[data-index=0]'), function(html) {
|
createNewPosts(data, components.get('post').not('[data-index=0]'), function(html) {
|
||||||
|
|||||||
Reference in New Issue
Block a user