mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 18:29:54 +00:00
Change avatar path
This commit is contained in:
1 parent
77ea08b7fc
commit
30d95182d3
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user