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 end
def origin_check?(id, %{"type" => type, "id" => actor_id} = _params) 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 do: id == actor_id
def origin_check?(_id, %{"actor" => nil} = _args), do: false def origin_check?(_id, %{"actor" => nil} = _args), do: false