Commit 5fcdabf3 authored by Agate's avatar Agate 💬
Browse files

Merge branch 'avatar-change' into 'develop'

Fixed UI crash when updating avatar

See merge request funkwhale/funkwhale!1101
parents 35e2cb24 27f40e60
......@@ -179,6 +179,13 @@ class UserWriteSerializer(serializers.ModelSerializer):["attachment_icon"])
return obj
def to_representation(self, instance):
r = super().to_representation(instance)
r["avatar"] = common_serializers.AttachmentSerializer(
return r
class UserReadSerializer(serializers.ModelSerializer):
......@@ -319,6 +319,7 @@ def test_user_can_patch_their_own_avatar(logged_in_api_client, factories):
assert == attachment
assert "avatar" in
def test_creating_user_creates_actor_as_well(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment