activitypub: add a match clause for objects, not just activities
Dieser Commit ist enthalten in:
Ursprung
dbc4e92509
Commit
75a9b2a851
@ -798,6 +798,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub 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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren