1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.OStatus.DeleteHandler do
8 alias Pleroma.Web.ActivityPub.ActivityPub
11 def handle_delete(entry, _doc \\ nil) do
12 with id <- XML.string_from_xpath("//id", entry),
13 %Object{} = object <- Object.normalize(id),
14 {:ok, delete} <- ActivityPub.delete(object, false) do