diff --git a/public/src/app.js b/public/src/app.js index 766c8755a7..09828f14c1 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -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)); } }); }; diff --git a/src/middleware/ratelimit.js b/src/middleware/ratelimit.js index a468c97662..8b1d1dffcc 100644 --- a/src/middleware/ratelimit.js +++ b/src/middleware/ratelimit.js @@ -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; \ No newline at end of file +module.exports = ratelimit;