mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
feat: #8521, allow editing title before posting from queue
This commit is contained in:
@@ -174,10 +174,10 @@ async function acceptOrReject(method, socket, data) {
|
||||
}
|
||||
|
||||
SocketPosts.editQueuedContent = async function (socket, data) {
|
||||
if (!data || !data.id || !data.content) {
|
||||
if (!data || !data.id || (!data.content && !data.title)) {
|
||||
throw new Error('[[error:invalid-data]]');
|
||||
}
|
||||
await posts.editQueuedContent(socket.uid, data.id, data.content);
|
||||
await posts.editQueuedContent(socket.uid, data.id, data.content, data.title);
|
||||
return await plugins.fireHook('filter:parse.post', { postData: data });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user