Preceding slash

main
Bob Mottram 2021-02-10 15:23:51 +00:00
parent 41045ba673
commit 5d54d0131f
1 changed files with 2 additions and 2 deletions

View File

@ -327,9 +327,9 @@ def _getEditIconHtml(baseDir: str, nickname: str, domainFull: str,
""" """
editStr = '' editStr = ''
actor = postJsonObject['actor'] actor = postJsonObject['actor']
if (actor.endswith(domainFull + '/users/' + nickname) or if (actor.endswith('/' + domainFull + '/users/' + nickname) or
(isEditor(baseDir, nickname) and (isEditor(baseDir, nickname) and
actor.endswith(domainFull + '/users/news'))): actor.endswith('/' + domainFull + '/users/news'))):
postId = postJsonObject['object']['id'] postId = postJsonObject['object']['id']