Allow to fetch Application actors
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
d0b125064f
commit
6cdc68e1a8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user