mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
better handling of guest handles in frontend, #2569
This commit is contained in:
@@ -260,6 +260,7 @@ SocketPosts.edit = function(socket, data, callback) {
|
||||
// uid, pid, title, content, options
|
||||
postTools.edit({
|
||||
uid: socket.uid,
|
||||
handle: data.handle,
|
||||
pid: data.pid,
|
||||
title: data.title,
|
||||
content: data.content,
|
||||
@@ -274,6 +275,7 @@ SocketPosts.edit = function(socket, data, callback) {
|
||||
|
||||
websockets.in('topic_' + results.topic.tid).emit('event:post_edited', {
|
||||
pid: data.pid,
|
||||
handle: data.handle,
|
||||
title: results.topic.title,
|
||||
isMainPost: results.topic.isMainPost,
|
||||
tags: results.topic.tags,
|
||||
|
||||
Reference in New Issue
Block a user