main
Bob Mottram 2020-12-18 23:27:26 +00:00
parent 1ec334a6d9
commit 77ea08b7fc
1 changed files with 5 additions and 6 deletions

View File

@ -3803,13 +3803,12 @@ class PubServer(BaseHTTPRequestHandler):
lastPartOfUrl = actorUrl.split('/')[-1]
srchStr = '/' + lastPartOfUrl
actorUrl = actorUrl.replace(srchStr, repStr)
actorUrl = actorUrl.replace('/users/',
'/accounts/avatars/')
actorJson['icon']['url'] = actorUrl
print('actorUrl: ' + actorUrl)
actorJson['icon']['url'] = \
actorUrl.replace('/users/',
'/accounts/avatars/')
if '.' in actorJson['icon']['url']:
imgExt = \
actorJson['icon']['url'].split('.')[-1]
if '.' in actorUrl:
imgExt = actorUrl.split('.')[-1]
if imgExt == 'jpg':
imgExt = 'jpeg'
actorJson['icon']['mediaType'] = \