Node.js based forum software built for the modern web
fix: topic events disappearing if there are queued posts
Barış Soner Uşaklı2808c952c5c2
diff --git a/src/topics/events.js b/src/topics/events.jsindex 8dc2381fdf..25a897d458 100644--- a/src/topics/events.js+++ b/src/topics/events.js@@ -111,7 +111,7 @@ async function modifyEvent({ tid, uid, eventIds, timestamps, events }) {const isPrivileged = await user.isPrivileged(uid);if (isPrivileged) {const queuedPosts = await posts.getQueuedPosts({ tid }, { metadata: false });- Object.assign(events, queuedPosts.map(item => ({+ events.push(...queuedPosts.map(item => ({type: 'post-queue',timestamp: item.data.timestamp || Date.now(),uid: item.data.uid,