From 1ba49caeca3ab4a24bc1ae83c9e219b7f203f736 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer <raphael@joindiaspora.com> Date: Thu, 21 Jul 2011 13:59:02 -0700 Subject: [PATCH] Fix like socketing to use GUIDs --- public/javascripts/web-socket-receiver.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/javascripts/web-socket-receiver.js b/public/javascripts/web-socket-receiver.js index b00b30ae70..6869a12bc7 100644 --- a/public/javascripts/web-socket-receiver.js +++ b/public/javascripts/web-socket-receiver.js @@ -41,7 +41,7 @@ var WebSocketReceiver = { WSR.debug(debug_string); if (obj['class']=="retractions") { - WebSocketReceiver.processRetraction(obj.post_id); + WebSocketReceiver.processRetraction(obj.post_guid); } else if (obj['class']=="comments") { WebSocketReceiver.processComment(obj.post_guid, obj.comment_guid, obj.html, { @@ -51,7 +51,7 @@ var WebSocketReceiver = { }); } else if (obj['class']=="likes") { - WebSocketReceiver.processLike(obj.post_id, obj.html); + WebSocketReceiver.processLike(obj.post_guid, obj.html); } else { WebSocketReceiver.processPost(obj.html, obj.aspect_ids); @@ -83,8 +83,8 @@ var WebSocketReceiver = { Diaspora.widgets.notifications.showNotification(notification); }, - processRetraction: function(post_id){ - $("#" + post_id).fadeOut(400, function() { + processRetraction: function(post_guid){ + $("#" + post_guid).fadeOut(400, function() { $(this).remove(); }); if($("#main_stream")[0].childElementCount === 0) { -- GitLab