From e5533fde11c7f09e120a94741be1862c9ebed80d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 27 Nov 2020 18:36:53 +0000 Subject: [PATCH] Front screen is always authorized --- webapp_profile.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index f40753c64..bfb9a7e18 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -629,7 +629,7 @@ def htmlProfile(rssIconAtTop: bool, getBannerFile(baseDir, nickname, domain) htmlFrontScreenPosts(recentPostsCache, maxRecentPosts, translate, - baseDir, httpPrefix, authorized, + baseDir, httpPrefix, nickname, domain, port, session, wfRequest, personCache, projectVersion, @@ -764,7 +764,6 @@ def htmlProfilePosts(recentPostsCache: {}, maxRecentPosts: int, def htmlFrontScreenPosts(recentPostsCache: {}, maxRecentPosts: int, translate: {}, baseDir: str, httpPrefix: str, - authorized: bool, nickname: str, domain: str, port: int, session, wfRequest: {}, personCache: {}, projectVersion: str, @@ -781,14 +780,13 @@ def htmlFrontScreenPosts(recentPostsCache: {}, maxRecentPosts: int, ctr = 0 currPage = 1 boxName = 'tlfeatures' + authorized = True while ctr < maxItems and currPage < 4: outboxFeed = \ - personBoxJson({}, session, baseDir, domain, - port, - '/users/' + nickname + '/' + boxName + '?page=' + - str(currPage), - httpPrefix, - 10, boxName, + personBoxJson({}, session, baseDir, domain, port, + '/users/' + nickname + '/' + boxName + + '?page=' + str(currPage), + httpPrefix, 10, boxName, authorized, 0, False, 0) if not outboxFeed: break