Skip to content
Extraits de code Groupes Projets
Valider 1ba49cae rédigé par Raphael Sofaer's avatar Raphael Sofaer
Parcourir les fichiers

Fix like socketing to use GUIDs

parent 8eea37cb
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter