mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-09-02 01:57:38 +02:00
inbetween some changes but asked to pull so I'll comment better later
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
@@ -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: :^)
|
||||
|
||||
Reference in New Issue
Block a user