Merge branch 'activitypub-tombstone-fix' into 'develop'
Don't crash on AP request for tombstone See merge request pleroma/pleroma!630
This commit is contained in:
commit
576368237c
3 changed files with 29 additions and 0 deletions
|
|
@ -801,6 +801,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
end
|
||||
end
|
||||
|
||||
def is_public?(%Object{data: %{"type" => "Tombstone"}}) do
|
||||
false
|
||||
end
|
||||
|
||||
def is_public?(activity) do
|
||||
"https://www.w3.org/ns/activitystreams#Public" in (activity.data["to"] ++
|
||||
(activity.data["cc"] || []))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue