Merge remote-tracking branch 'origin/master' into socket.io1.x

This commit is contained in:
barisusakli
2014-11-21 12:28:39 -05:00
2 changed files with 4 additions and 4 deletions

View File

@@ -269,8 +269,8 @@ var socket,
selector = selector || $('a');
selector.each(function() {
var href = $(this).attr('href');
if (href && app.userslug && href.indexOf('_') !== -1) {
$(this).attr('href', href.replace(/_/g, app.userslug));
if (href && app.userslug && href.indexOf('user/_self_') !== -1) {
$(this).attr('href', href.replace(/user\/_self_/g, 'user/' + app.userslug));
}
});
};

View File

@@ -5,7 +5,7 @@ var winston = require('winston');
var ratelimit = {};
var allowedCallsPerSecond = 10;
var allowedCallsPerSecond = 20;
ratelimit.isFlooding = function(socket) {
@@ -32,4 +32,4 @@ ratelimit.isFlooding = function(socket) {
return false;
};
module.exports = ratelimit;
module.exports = ratelimit;