Make sure we have only one relay actor

Close #427

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-11-02 18:10:56 +01:00
parent 664f108f8f
commit c5e7abe3d4
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 2 additions and 0 deletions

View File

@ -401,7 +401,9 @@ defmodule Mobilizon.Actors.Actor do
%__MODULE__{}
|> Ecto.Changeset.cast(data, @attrs)
|> build_urls()
# Can use sharedinbox directly
|> put_change(:inbox_url, "#{Endpoint.url()}/inbox")
|> unique_username_validator()
end
@spec build_anonymous_actor_creation_attrs :: Ecto.Changeset.t()