From 2793d6a6e6de6f2a80b53a937dc90d3c67f4f70d Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Tue, 8 Dec 2015 12:48:12 +0100 Subject: [PATCH] Revert "Fix pusher authentication" This reverts commit 9d5775f6a29480e4f9a4e0ea7300fdbd970e8333. This was not a proper fix, it seems that the signature is wrong too --- app/utils/pusher.coffee | 5 +---- bower.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/utils/pusher.coffee b/app/utils/pusher.coffee index 9e14a054..a9ae43dc 100644 --- a/app/utils/pusher.coffee +++ b/app/utils/pusher.coffee @@ -89,15 +89,12 @@ if ENV.pro names = Object.keys(channels.channels) channels.callbacks.push (auths) -> - auth = auths[name] - auth = auth.replace(/^key:/, config.key) - _callback(false, auth: auth) + _callback(false, auth: auths[name]) unless channels.fetching channels.fetching = true Ajax.post Pusher.channel_auth_endpoint, { socket_id: socketId, channels: names }, (data) -> channels.fetching = false - debugger callback(data.channels) for callback in channels.callbacks diff --git a/bower.json b/bower.json index c45afa30..ca6fd06e 100644 --- a/bower.json +++ b/bower.json @@ -17,7 +17,7 @@ "JavaScript-MD5": "~1.1.0", "moment": "~2.9.0", "jquery-timeago": "~1.4.1", - "pusher": "~2.2.4", + "pusher": "~2.2.3", "pretender": "0.1.0" } }