final pass #1720, closed #1720

This commit is contained in:
Julian Lam
2014-06-20 17:53:40 -04:00
parent d257632878
commit c41bb05711
8 changed files with 33 additions and 42 deletions

View File

@@ -115,10 +115,8 @@ function sendNotificationToPostOwner(data, uid, notification) {
}
notifications.create({
body: {
short: '[[' + notification + ', ' + results.username + ']]',
long: results.topicData.content
},
bodyShort: '[[' + notification + ', ' + results.username + ']]',
bodyLong: results.topicData.content,
path: nconf.get('relative_path') + '/topic/' + results.topicData.slug + '/' + results.index,
uniqueId: 'post:' + data.pid,
from: uid
@@ -309,10 +307,8 @@ SocketPosts.flag = function(socket, pid, callback) {
},
function(adminGroup, next) {
notifications.create({
body: {
short: message,
long: post.content
},
bodyShort: message,
bodyLong: post.content,
path: path,
uniqueId: 'post_flag:' + pid,
from: socket.uid