showing guest handles in frontend UI #2569

This commit is contained in:
Julian Lam
2014-12-31 16:27:35 -05:00
parent b97c9e4467
commit 325815a78d
7 changed files with 60 additions and 32 deletions

View File

@@ -257,7 +257,17 @@ SocketPosts.edit = function(socket, data, callback) {
return callback(new Error('[[error:content-too-short, ' + meta.config.minimumPostLength + ']]'));
}
postTools.edit(socket.uid, data.pid, data.title, data.content, {topic_thumb: data.topic_thumb, tags: data.tags}, function(err, results) {
// uid, pid, title, content, options
postTools.edit({
uid: socket.uid,
pid: data.pid,
title: data.title,
content: data.content,
options: {
topic_thumb: data.topic_thumb,
tags: data.tags
}
}, function(err, results) {
if (err) {
return callback(err);
}