mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
1ec334a6d9
commit
77ea08b7fc
11
daemon.py
11
daemon.py
|
@ -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'] = \
|
||||
|
|
Loading…
Reference in New Issue