activitypub: add a match clause for objects, not just activities
This commit is contained in:
parent
dbc4e92509
commit
75a9b2a851
1 changed files with 1 additions and 0 deletions
|
@ -798,6 +798,7 @@ def fetch_and_contain_remote_object_from_id(id) do
|
|||
end
|
||||
|
||||
def is_public?(%Object{data: %{"type" => "Tombstone"}}), do: false
|
||||
def is_public?(%Object{data: data}), do: is_public?(data)
|
||||
def is_public?(%Activity{data: data}), do: is_public?(data)
|
||||
|
||||
def is_public?(data) do
|
||||
|
|
Loading…
Reference in a new issue