mirror of https://gitlab.com/bashrc2/epicyon
Check path
parent
4e6d9d2d45
commit
10218086d5
|
@ -321,7 +321,7 @@ def htmlPersonOptions(defaultTimeline: str,
|
||||||
backPath = '/users/' + nickname + '/' + defaultTimeline
|
backPath = '/users/' + nickname + '/' + defaultTimeline
|
||||||
if 'moderation' in backToPath:
|
if 'moderation' in backToPath:
|
||||||
backPath = '/users/' + nickname + '/moderation'
|
backPath = '/users/' + nickname + '/moderation'
|
||||||
if authorized:
|
if authorized and originPathStr == '/users/' + nickname:
|
||||||
optionsStr += \
|
optionsStr += \
|
||||||
' <a href="' + backPath + '"><button type="button" ' + \
|
' <a href="' + backPath + '"><button type="button" ' + \
|
||||||
'class="buttonIcon" name="submitBack">' + translate['Go Back'] + \
|
'class="buttonIcon" name="submitBack">' + translate['Go Back'] + \
|
||||||
|
|
Loading…
Reference in New Issue