From 4ff71f6b0b89c0fccfb97d0b4652060a7ba4481e Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 23 Nov 2016 17:40:22 +0300 Subject: [PATCH] allow two sections --- src/routes/accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/accounts.js b/src/routes/accounts.js index abe1929ce5..14382bd568 100644 --- a/src/routes/accounts.js +++ b/src/routes/accounts.js @@ -7,7 +7,7 @@ module.exports = function (app, middleware, controllers) { var middlewares = [middleware.checkGlobalPrivacySettings]; var accountMiddlewares = [middleware.checkGlobalPrivacySettings, middleware.checkAccountPermissions]; - setupPageRoute(app, '/uid/:uid/:section?', middleware, [], middleware.redirectUidToUserslug); + setupPageRoute(app, '/uid/:uid/:section1?/:section2?', middleware, [], middleware.redirectUidToUserslug); setupPageRoute(app, '/user/:userslug', middleware, middlewares, controllers.accounts.profile.get); setupPageRoute(app, '/user/:userslug/following', middleware, middlewares, controllers.accounts.follow.getFollowing);