Fix actor AP representation of avatar
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
84bd1ccfad
commit
6f6d617eba
|
@ -160,7 +160,7 @@ defmodule Mobilizon.Federation.ActivityStream.Converter.Actor do
|
||||||
|
|
||||||
@spec maybe_add_avatar_picture(map(), ActorModel.t()) :: map()
|
@spec maybe_add_avatar_picture(map(), ActorModel.t()) :: map()
|
||||||
defp maybe_add_avatar_picture(actor_data, %ActorModel{avatar: %File{} = avatar}) do
|
defp maybe_add_avatar_picture(actor_data, %ActorModel{avatar: %File{} = avatar}) do
|
||||||
Map.put(actor_data, "image", %{
|
Map.put(actor_data, "icon", %{
|
||||||
"type" => "Image",
|
"type" => "Image",
|
||||||
"mediaType" => avatar.content_type,
|
"mediaType" => avatar.content_type,
|
||||||
"url" => avatar.url
|
"url" => avatar.url
|
||||||
|
|
Loading…
Reference in a new issue