From 77e7eff43747c2a584f4e600bc7a17acc5a3de5d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 11 Feb 2021 12:27:12 +0000 Subject: [PATCH] Comments --- webapp_post.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp_post.py b/webapp_post.py index c9505c819..b5646c416 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -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'))):