mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 09:29:17 +02:00
See #565: fixed path issues with external storage
This commit is contained in:
parent
f9a9899ef9
commit
a2c52abb4f
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