mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-19 05:52:57 +01:00
Post queue write api (#13473)
* move post queue from socket.io to rest api * move harmony post-queue to core add canEdit, allow users to edit their queued posts * fix: openapi spec * lint: whitespace
This commit is contained in:
@@ -307,9 +307,11 @@ module.exports = function (Posts) {
|
||||
if (data.type === 'topic') {
|
||||
const result = await createTopic(data.data);
|
||||
data.pid = result.postData.pid;
|
||||
data.tid = result.topicData.tid;
|
||||
} else if (data.type === 'reply') {
|
||||
const result = await createReply(data.data);
|
||||
data.pid = result.pid;
|
||||
data.tid = result.tid;
|
||||
}
|
||||
await removeFromQueue(id);
|
||||
plugins.hooks.fire('action:post-queue:submitFromQueue', { data: data });
|
||||
|
||||
Reference in New Issue
Block a user