DeleteValidator: Only allow deletion of certain types.
This commit is contained in:
parent
32b8386ede
commit
5f42e6629d
4 changed files with 63 additions and 17 deletions
|
|
@ -36,6 +36,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
|
|||
# - Set up notification
|
||||
# - Reduce the user note count
|
||||
# - Reduce the reply count
|
||||
# - Stream out the activity
|
||||
def handle(%{data: %{"type" => "Delete", "object" => deleted_object}} = object, meta) do
|
||||
deleted_object =
|
||||
Object.normalize(deleted_object, false) || User.get_cached_by_ap_id(deleted_object)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue