inbetween some changes but asked to pull so I'll comment better later

This commit is contained in:
psychobunny
2013-04-24 21:16:10 +00:00
parent 78d753b8f9
commit e50e136d83
5 changed files with 16 additions and 14 deletions

View File

@@ -66,7 +66,7 @@ var RDB = require('./redis.js'),
RDB.set('tid:' + tid + ':uid', global.uid);
RDB.set('tid:' + tid + ':timestamp', new Date().getTime());
RDB.set('topic:slug:' + slugify(title) + ':tid', tid);
RDB.set('topic:slug:' + tid + '/' + slugify(title) + ':tid', tid);
// Posts
posts.create(content, function(pid) {
@@ -78,8 +78,8 @@ var RDB = require('./redis.js'),
global.socket.emit('event:alert', {
title: 'Thank you for registering',
message: 'You have successfully registered - welcome to nodebb!',
title: 'Thank you for posting',
message: 'You have successfully posted. Click here to view your post.',
type: 'notify',
timeout: 2000
});

View File

@@ -38,8 +38,7 @@ var SocketIO = require('socket.io').listen(global.server),
modules.templates.init();
}
// not required, "connect" emitted automatically
// socket.emit('event:connect', {status: 1});
socket.emit('event:connect', {status: 1});
// BEGIN: API calls (todo: organize)
// julian: :^)