merge-requests/30/head
Bob Mottram 2021-02-11 12:27:12 +00:00
parent 292fa6fd8f
commit 77e7eff437
1 changed files with 4 additions and 0 deletions

View File

@ -327,6 +327,10 @@ def _getEditIconHtml(baseDir: str, nickname: str, domainFull: str,
"""
editStr = ''
actor = postJsonObject['actor']
# This should either be a post which you created,
# or it could be generated from the newswire (see
# _addBlogsToNewswire) in which case anyone with
# editor status should be able to alter it
if (actor.endswith('/' + domainFull + '/users/' + nickname) or
(isEditor(baseDir, nickname) and
actor.endswith('/' + domainFull + '/users/news'))):