mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fixes to gravatars and get functions in user.js
This commit is contained in:
@@ -47,7 +47,7 @@ var RDB = require('./redis.js'),
|
||||
post_rep = replies[3];
|
||||
|
||||
user.get_user_postdetails(uid, function(user_details) {
|
||||
user.get_gravatars_by_uids(uid, '', function(gravatars) {
|
||||
user.get_gravatars_by_uids([uid], '', function(gravatars) {
|
||||
var posts = [];
|
||||
var callbacks = content.length;
|
||||
|
||||
@@ -104,7 +104,7 @@ var RDB = require('./redis.js'),
|
||||
user.get_gravatars_by_uids([uid], '', function(gravatars) {
|
||||
var timestamp = new Date().getTime();
|
||||
|
||||
socket.in('topic_' + tid).emit('event:new_post', {
|
||||
socket.on('topic_' + tid).emit('event:new_post', {
|
||||
'posts' : [
|
||||
{
|
||||
'pid' : pid,
|
||||
|
||||
Reference in New Issue
Block a user