Don't show some timelines on profile for group account

main
Bob Mottram 2021-09-21 18:31:44 +01:00
parent 2fbe471e04
commit c976e15d9b
1 changed files with 3 additions and 3 deletions

View File

@ -889,7 +889,7 @@ def htmlProfile(signingPrivateKeyPem: str,
theme, systemLanguage, theme, systemLanguage,
maxLikeCount, maxLikeCount,
signingPrivateKeyPem) + licenseStr signingPrivateKeyPem) + licenseStr
elif selected == 'following': elif selected == 'following' and not isGroup:
profileStr += \ profileStr += \
_htmlProfileFollowing(translate, baseDir, httpPrefix, _htmlProfileFollowing(translate, baseDir, httpPrefix,
authorized, nickname, authorized, nickname,
@ -908,11 +908,11 @@ def htmlProfile(signingPrivateKeyPem: str,
selected, usersPath, pageNumber, selected, usersPath, pageNumber,
maxItemsPerPage, dormantMonths, debug, maxItemsPerPage, dormantMonths, debug,
signingPrivateKeyPem) signingPrivateKeyPem)
elif selected == 'roles': elif selected == 'roles' and not isGroup:
profileStr += \ profileStr += \
_htmlProfileRoles(translate, nickname, domainFull, _htmlProfileRoles(translate, nickname, domainFull,
extraJson) extraJson)
elif selected == 'skills': elif selected == 'skills' and not isGroup:
profileStr += \ profileStr += \
_htmlProfileSkills(translate, nickname, domainFull, extraJson) _htmlProfileSkills(translate, nickname, domainFull, extraJson)
# elif selected == 'shares': # elif selected == 'shares':