better handling of guest handles in frontend, #2569

This commit is contained in:
Julian Lam
2014-12-31 21:27:41 -05:00
parent 9befa6aca7
commit 23b9b21cdd
5 changed files with 13 additions and 2 deletions

View File

@@ -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,