Allow to fetch Application actors

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-10-25 18:32:46 +02:00
parent d0b125064f
commit 6cdc68e1a8
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -300,7 +300,7 @@ defmodule Mobilizon.Federation.ActivityPub.Utils do
end
def origin_check?(id, %{"type" => type, "id" => actor_id} = _params)
when type in ["Actor", "Person", "Group"],
when type in ["Actor", "Person", "Group", "Application"],
do: id == actor_id
def origin_check?(_id, %{"actor" => nil} = _args), do: false