Fix failing test on updating actor

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-09-09 09:55:08 +02:00
parent cc4a59ad1f
commit 8f50e88e1e
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ defmodule Mobilizon.Actors.Actor do
]
@attrs @required_attrs ++ @optional_attrs
@update_required_attrs @required_attrs
@update_required_attrs @required_attrs -- [:url]
@update_optional_attrs [:name, :summary, :manually_approves_followers, :user_id]
@update_attrs @update_required_attrs ++ @update_optional_attrs

View File

@ -33,7 +33,7 @@ defmodule Mobilizon.Service.ActivityPub.Converters.Actor do
"type" => String.to_existing_atom(object["type"]),
"preferred_username" => object["preferredUsername"],
"summary" => object["summary"],
"url" => object["url"],
"url" => object["id"],
"name" => object["name"],
"avatar" => avatar,
"banner" => banner,