mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
fix: closes #11437, link to queued post from event
This commit is contained in:
@@ -58,8 +58,7 @@ Events._types = {
|
||||
},
|
||||
'post-queue': {
|
||||
icon: 'fa-history',
|
||||
href: '/post-queue',
|
||||
translation: async event => translateEventArgs(event, 'topic:user-queued-post', renderUser(event), `/post-queue`, renderTimeago(event)),
|
||||
translation: async event => translateEventArgs(event, 'topic:user-queued-post', renderUser(event), `${relative_path}${event.href}`, renderTimeago(event)),
|
||||
},
|
||||
backlink: {
|
||||
icon: 'fa-link',
|
||||
@@ -154,6 +153,7 @@ async function modifyEvent({ tid, uid, eventIds, timestamps, events }) {
|
||||
const queuedPosts = await posts.getQueuedPosts({ tid }, { metadata: false });
|
||||
events.push(...queuedPosts.map(item => ({
|
||||
type: 'post-queue',
|
||||
href: `/post-queue/${item.id}`,
|
||||
timestamp: item.data.timestamp || Date.now(),
|
||||
uid: item.data.uid,
|
||||
})));
|
||||
|
||||
Reference in New Issue
Block a user