Icon and image without MediaType

main
Bob Mottram 2021-09-30 16:14:05 +01:00
parent b414eec285
commit 8661d2594d
1 changed files with 8 additions and 2 deletions

View File

@ -270,8 +270,14 @@ def getActorUpdateJson(actorJson: {}) -> {}:
'object': {
'id': actorJson['id'],
'type': actorJson['type'],
'icon': actorJson['icon'],
'image': actorJson['image'],
'icon': {
'type': 'Image',
'url': actorJson['icon']['url']
},
'image': {
'type': 'Image',
'url': actorJson['image']['url']
},
'attachment': actorJson['attachment'],
'following': actorJson['id'] + '/following',
'followers': actorJson['id'] + '/followers',