psychobunny 12 years ago
commit 6142225726

@ -44,7 +44,7 @@
active_record.innerHTML = "most users ever online was <strong>" + data.record + "</strong> on <strong>" + (new Date(parseInt(data.timestamp,10))).toUTCString() + "</strong>";
});
socket.emit('api:user.get', { fields: ['username', 'picture'] });
socket.on('api:user.get', function(data) {
socket.once('api:user.get', function(data) {
if (data.uid > 0) {
var gravatar = document.createElement('img'),
name = document.createElement('span')

@ -3,6 +3,10 @@ var RDB = require('./redis.js'),
marked = require('marked'),
user = require('./user.js');
marked.setOptions({
breaks: true
});
(function(Posts) {
//data structure
//*global:next_post_id

Loading…
Cancel
Save