From 634b66c59e0708afe2e6e09c2543c497df48f1c1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 10 Oct 2020 22:14:54 +0100 Subject: [PATCH] Debug --- webinterface.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webinterface.py b/webinterface.py index 087f2f8b2..3bce93052 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1352,27 +1352,34 @@ def htmlEditNewsPost(translate: {}, baseDir: str, path: str, httpPrefix: str, postUrl: str) -> str: """Edits a news post """ + print('TEST htmlEditNewsPost 1: ' + path) if '/users/' not in path: return '' + print('TEST htmlEditNewsPost 2: ') pathOriginal = path path = path.replace('/inbox', '').replace('/outbox', '') path = path.replace('/shares', '') path = path.replace('/tlnews', '') nickname = getNicknameFromActor(path) + print('TEST htmlEditNewsPost 3: ' + str(nickname)) if not nickname: return '' # is the user an editor? + print('TEST htmlEditNewsPost 4: ' + str(nickname)) if not isEditor(baseDir, nickname): return '' postFilename = locatePost(baseDir, nickname, domain, postUrl) + print('TEST htmlEditNewsPost 5: ' + str(postFilename)) if not postFilename: return '' postJsonObject = loadJson(postFilename) + print('TEST htmlEditNewsPost 6: ' + str(postJsonObject)) if not postJsonObject: return '' + print('TEST htmlEditNewsPost 7') cssFilename = baseDir + '/epicyon-links.css' if os.path.isfile(baseDir + '/links.css'):