|
|
|
@ -92,7 +92,7 @@ module.exports = function(SocketPosts) {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
SocketPosts.favourite = function(socket, data, callback) {
|
|
|
|
|
favouriteCommand(socket, 'favourite', 'favourited', 'notifications:favourited_your_post_in', data, callback);
|
|
|
|
|
favouriteCommand(socket, 'favourite', 'favourited', '', data, callback);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
SocketPosts.unfavourite = function(socket, data, callback) {
|
|
|
|
@ -103,7 +103,7 @@ module.exports = function(SocketPosts) {
|
|
|
|
|
if (!socket.uid) {
|
|
|
|
|
return callback(new Error('[[error:not-logged-in]]'))
|
|
|
|
|
}
|
|
|
|
|
if(!data || !data.pid || !data.room_id) {
|
|
|
|
|
if (!data || !data.pid || !data.room_id) {
|
|
|
|
|
return callback(new Error('[[error:invalid-data]]'));
|
|
|
|
|
}
|
|
|
|
|
async.parallel({
|
|
|
|
|