From 4807002447c8ee1f9d0bb34310a9ac67a9e97fe1 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sat, 4 May 2013 06:11:37 +0000 Subject: [PATCH] fix for responsive avatar, fix for submit/discard buttons taking you away from the thread --- public/templates/header.tpl | 4 ++-- src/posts.js | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/public/templates/header.tpl b/public/templates/header.tpl index def57eaed5..1cdcdcd8fa 100644 --- a/public/templates/header.tpl +++ b/public/templates/header.tpl @@ -54,8 +54,8 @@
- Submit - Discard + Submit + Discard
diff --git a/src/posts.js b/src/posts.js index 2bf20a9603..ad0665b1c8 100644 --- a/src/posts.js +++ b/src/posts.js @@ -3,10 +3,6 @@ var RDB = require('./redis.js'), marked = require('marked'), user = require('./user.js'); -marked.setOptions({ - breaks: true -}); - (function(Posts) { //data structure //*global:next_post_id @@ -105,10 +101,10 @@ marked.setOptions({ }); user.get_user_postdetails([uid], function(user_details) { - user.get_gravatars_by_uids([uid], 80, function(gravatars) { + user.get_gravatars_by_uids([uid], '', function(gravatars) { var timestamp = new Date().getTime(); - socket.broadcast.to('topic_' + tid).emit('event:new_post', { + socket.in('topic_' + tid).emit('event:new_post', { 'posts' : [ { 'pid' : pid,