mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
closes #2444
This commit is contained in:
@@ -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));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user