mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 11:39:16 +02:00
Merge branch '565-failing-tests' into 'develop'
See #565: fixed path issues with external storage Closes #565 See merge request funkwhale/funkwhale!736
This commit is contained in:
commit
430af5560c
8 changed files with 39 additions and 13 deletions
|
@ -129,7 +129,7 @@ class ActorSerializer(jsonld.JsonLdSerializer):
|
|||
if instance.user.avatar:
|
||||
ret["icon"] = {
|
||||
"type": "Image",
|
||||
"mediaType": mimetypes.guess_type(instance.user.avatar.path)[0],
|
||||
"mediaType": mimetypes.guess_type(instance.user.avatar_path)[0],
|
||||
"url": utils.full_url(instance.user.avatar.crop["400x400"].url),
|
||||
}
|
||||
except ObjectDoesNotExist:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue