mirror of https://gitlab.com/bashrc2/epicyon
Change avatar path
parent
77ea08b7fc
commit
30d95182d3
|
@ -154,7 +154,7 @@ def randomizeActorImages(personJson: {}) -> None:
|
|||
# secure names
|
||||
randStr = str(randint(10000000000000, 99999999999999)) # nosec
|
||||
personJson['icon']['url'] = \
|
||||
personId + '/avatar' + randStr + '.' + existingExtension
|
||||
'/accounts/avatars/avatar' + randStr + '.' + existingExtension
|
||||
lastPartOfFilename = personJson['image']['url'].split('/')[-1]
|
||||
existingExtension = lastPartOfFilename.split('.')[1]
|
||||
randStr = str(randint(10000000000000, 99999999999999)) # nosec
|
||||
|
|
Loading…
Reference in New Issue