Fix actor AP representation of avatar

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-11-16 15:47:14 +01:00
parent 84bd1ccfad
commit 6f6d617eba
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -160,7 +160,7 @@ defmodule Mobilizon.Federation.ActivityStream.Converter.Actor do
@spec maybe_add_avatar_picture(map(), ActorModel.t()) :: map()
defp maybe_add_avatar_picture(actor_data, %ActorModel{avatar: %File{} = avatar}) do
Map.put(actor_data, "image", %{
Map.put(actor_data, "icon", %{
"type" => "Image",
"mediaType" => avatar.content_type,
"url" => avatar.url