Only show modertion link if the account is a moderator

main
Bob Mottram 2021-02-05 18:23:59 +00:00
parent 87c14f0c0f
commit 36963fe3fc
1 changed files with 3 additions and 2 deletions

View File

@ -388,9 +388,10 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
translate['Blogs']: usersPath + '/tlblogs#timeline',
translate['Events']: usersPath + '/tlevents#timeline',
translate['Skip to Newswire']: '#newswire',
translate['Skip to Links']: '#links',
translate['Mod']: usersPath + '/moderation'
translate['Skip to Links']: '#links'
}
if moderator:
navLinks[translate['Mod']] = usersPath + '/moderation'
tlStr += htmlKeyboardNavigation(navLinks)
# banner and row of buttons