mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/general: refactor URL parameter handling
This commit is contained in:
@ -11,11 +11,11 @@ const EmptyView = require('../views/empty_view.js');
|
||||
|
||||
class UserController {
|
||||
constructor(ctx, section) {
|
||||
User.get(ctx.params.name).then(user => {
|
||||
User.get(ctx.parameters.name).then(user => {
|
||||
const isLoggedIn = api.isLoggedIn(user);
|
||||
const infix = isLoggedIn ? 'self' : 'any';
|
||||
|
||||
this._name = ctx.params.name;
|
||||
this._name = ctx.parameters.name;
|
||||
user.addEventListener('change', e => this._evtSaved(e));
|
||||
|
||||
const myRankIndex = api.user ?
|
||||
|
Reference in New Issue
Block a user