Skip to content

Node.js based forum software built for the modern web

Change argument in action:posts.loaded

Megadf0e92471499
diff --git a/public/src/client/home.js b/public/src/client/home.js
index 23049af741..f3b4e65acc 100644
--- a/public/src/client/home.js
+++ b/public/src/client/home.js
@@ -59,7 +59,7 @@ define('forum/home', function() {
recentPosts.last().remove();
}
- $(window).trigger('action:posts.loaded');
+ $(window).trigger('action:posts.loaded', {pids: [post.pid]});
});
}
diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js
index ec566d9812..1f49c6fdd0 100644
--- a/public/src/client/topic/posts.js
+++ b/public/src/client/topic/posts.js
@@ -130,7 +130,7 @@ define('forum/topic/posts', [
pids.push(data.posts[i].pid);
}
- $(window).trigger('action:posts.loaded', pids);
+ $(window).trigger('action:posts.loaded', {pids: pids});
onNewPostsLoaded(html, pids);
callback(true);
});