removed unnecessary warning message to anonymous users attempting to unfavourite posts

v1.18.x
psychobunny 12 years ago
parent 5645bcee2d
commit 8b8a890ac9

@ -80,16 +80,12 @@
* TODO: DRY, see translator.translate. The hard part is to make sure both work node.js / js side
*/
translator.get = function (key, callback) {
//console.log(files.loaded);
var parsedKey = key.split(':'),
languageFile = parsedKey[0];
parsedKey = parsedKey[1];
console.log(parsedKey);
translator.load(languageFile, function (languageData) {
console.log(languageData[parsedKey]);
if (callback) {
console.log('herped');
callback(languageData[parsedKey]);
}

@ -56,13 +56,6 @@ var RDB = require('./redis.js'),
Favourites.unfavourite = function (pid, room_id, uid, socket) {
if (uid === 0) {
socket.emit('event:alert', {
alert_id: 'post_favourite',
title: 'Not Logged In',
message: 'Please log in in order to favourite this post',
type: 'danger',
timeout: 5000
});
return;
}

Loading…
Cancel
Save