merge-requests/8/head
Bob Mottram 2020-12-18 23:23:05 +00:00
parent 5acc6fe3b2
commit 1ec334a6d9
1 changed files with 3 additions and 3 deletions

View File

@ -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/')