mirror of https://gitlab.com/bashrc2/epicyon
Front screen is always authorized
parent
31827f76b3
commit
e5533fde11
|
@ -629,7 +629,7 @@ def htmlProfile(rssIconAtTop: bool,
|
||||||
getBannerFile(baseDir, nickname, domain)
|
getBannerFile(baseDir, nickname, domain)
|
||||||
htmlFrontScreenPosts(recentPostsCache, maxRecentPosts,
|
htmlFrontScreenPosts(recentPostsCache, maxRecentPosts,
|
||||||
translate,
|
translate,
|
||||||
baseDir, httpPrefix, authorized,
|
baseDir, httpPrefix,
|
||||||
nickname, domain, port,
|
nickname, domain, port,
|
||||||
session, wfRequest, personCache,
|
session, wfRequest, personCache,
|
||||||
projectVersion,
|
projectVersion,
|
||||||
|
@ -764,7 +764,6 @@ def htmlProfilePosts(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
def htmlFrontScreenPosts(recentPostsCache: {}, maxRecentPosts: int,
|
def htmlFrontScreenPosts(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
translate: {},
|
translate: {},
|
||||||
baseDir: str, httpPrefix: str,
|
baseDir: str, httpPrefix: str,
|
||||||
authorized: bool,
|
|
||||||
nickname: str, domain: str, port: int,
|
nickname: str, domain: str, port: int,
|
||||||
session, wfRequest: {}, personCache: {},
|
session, wfRequest: {}, personCache: {},
|
||||||
projectVersion: str,
|
projectVersion: str,
|
||||||
|
@ -781,14 +780,13 @@ def htmlFrontScreenPosts(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
ctr = 0
|
ctr = 0
|
||||||
currPage = 1
|
currPage = 1
|
||||||
boxName = 'tlfeatures'
|
boxName = 'tlfeatures'
|
||||||
|
authorized = True
|
||||||
while ctr < maxItems and currPage < 4:
|
while ctr < maxItems and currPage < 4:
|
||||||
outboxFeed = \
|
outboxFeed = \
|
||||||
personBoxJson({}, session, baseDir, domain,
|
personBoxJson({}, session, baseDir, domain, port,
|
||||||
port,
|
'/users/' + nickname + '/' + boxName +
|
||||||
'/users/' + nickname + '/' + boxName + '?page=' +
|
'?page=' + str(currPage),
|
||||||
str(currPage),
|
httpPrefix, 10, boxName,
|
||||||
httpPrefix,
|
|
||||||
10, boxName,
|
|
||||||
authorized, 0, False, 0)
|
authorized, 0, False, 0)
|
||||||
if not outboxFeed:
|
if not outboxFeed:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue