Only show a subset of timelines for group account

main
Bob Mottram 2021-09-21 18:35:20 +01:00
parent c976e15d9b
commit d94baf8644
1 changed files with 29 additions and 27 deletions

View File

@ -889,16 +889,17 @@ def htmlProfile(signingPrivateKeyPem: str,
theme, systemLanguage, theme, systemLanguage,
maxLikeCount, maxLikeCount,
signingPrivateKeyPem) + licenseStr signingPrivateKeyPem) + licenseStr
elif selected == 'following' and not isGroup: if not isGroup:
profileStr += \ if selected == 'following':
_htmlProfileFollowing(translate, baseDir, httpPrefix, profileStr += \
authorized, nickname, _htmlProfileFollowing(translate, baseDir, httpPrefix,
domain, port, session, authorized, nickname,
cachedWebfingers, personCache, extraJson, domain, port, session,
projectVersion, ["unfollow"], selected, cachedWebfingers, personCache, extraJson,
usersPath, pageNumber, maxItemsPerPage, projectVersion, ["unfollow"], selected,
dormantMonths, debug, signingPrivateKeyPem) usersPath, pageNumber, maxItemsPerPage,
elif selected == 'followers': dormantMonths, debug, signingPrivateKeyPem)
if selected == 'followers':
profileStr += \ profileStr += \
_htmlProfileFollowing(translate, baseDir, httpPrefix, _htmlProfileFollowing(translate, baseDir, httpPrefix,
authorized, nickname, authorized, nickname,
@ -908,23 +909,24 @@ def htmlProfile(signingPrivateKeyPem: str,
selected, usersPath, pageNumber, selected, usersPath, pageNumber,
maxItemsPerPage, dormantMonths, debug, maxItemsPerPage, dormantMonths, debug,
signingPrivateKeyPem) signingPrivateKeyPem)
elif selected == 'roles' and not isGroup: if not isGroup:
profileStr += \ if selected == 'roles':
_htmlProfileRoles(translate, nickname, domainFull, profileStr += \
extraJson) _htmlProfileRoles(translate, nickname, domainFull,
elif selected == 'skills' and not isGroup: extraJson)
profileStr += \ elif selected == 'skills' and not isGroup:
_htmlProfileSkills(translate, nickname, domainFull, extraJson) profileStr += \
# elif selected == 'shares': _htmlProfileSkills(translate, nickname, domainFull, extraJson)
# profileStr += \ # elif selected == 'shares':
# _htmlProfileShares(actor, translate, # profileStr += \
# nickname, domainFull, # _htmlProfileShares(actor, translate,
# extraJson, 'shares') + licenseStr # nickname, domainFull,
# elif selected == 'wanted': # extraJson, 'shares') + licenseStr
# profileStr += \ # elif selected == 'wanted':
# _htmlProfileShares(actor, translate, # profileStr += \
# nickname, domainFull, # _htmlProfileShares(actor, translate,
# extraJson, 'wanted') + licenseStr # nickname, domainFull,
# extraJson, 'wanted') + licenseStr
# end of #timeline # end of #timeline
profileStr += '</div>' profileStr += '</div>'