From 1ec334a6d949d80a99fa1c1e98f7ed03264a9c51 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 18 Dec 2020 23:23:05 +0000 Subject: [PATCH] Debug --- daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index 85862a857..75dcaa49a 100644 --- a/daemon.py +++ b/daemon.py @@ -3799,11 +3799,11 @@ class PubServer(BaseHTTPRequestHandler): for mType, lastPart in uploads: repStr = '/' + lastPart if mType == 'avatar': - lastPartOfUrl = \ - actorJson['icon']['url'].split('/')[-1] - srchStr = '/' + lastPartOfUrl actorUrl = actorJson['icon']['url'] + lastPartOfUrl = actorUrl.split('/')[-1] + srchStr = '/' + lastPartOfUrl actorUrl = actorUrl.replace(srchStr, repStr) + print('actorUrl: ' + actorUrl) actorJson['icon']['url'] = \ actorUrl.replace('/users/', '/accounts/avatars/')