From e991d7d373c0fdf3ed88b328dd073f29ab2608fb Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 9 Apr 2021 10:43:34 +0200 Subject: [PATCH] Fix content type and size missing for profile avatars Signed-off-by: Thomas Citharel --- lib/graphql/resolvers/person.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/graphql/resolvers/person.ex b/lib/graphql/resolvers/person.ex index 21f686c12..70c720a81 100644 --- a/lib/graphql/resolvers/person.ex +++ b/lib/graphql/resolvers/person.ex @@ -225,9 +225,9 @@ defmodule Mobilizon.GraphQL.Resolvers.Person do end defp save_picture(media, key) do - with {:ok, %{name: name, url: url, content_type: content_type, size: _size}} <- + with {:ok, %{name: name, url: url, content_type: content_type, size: size}} <- Upload.store(media.file, type: key, description: media.alt) do - %{"name" => name, "url" => url, "mediaType" => content_type} + %{"name" => name, "url" => url, "content_type" => content_type, "size" => size} end end