Ostatus DeleteHandler: Fix for new option format.
authorlain <lain@soykaf.club>
Fri, 11 Oct 2019 10:53:09 +0000 (12:53 +0200)
committerlain <lain@soykaf.club>
Fri, 11 Oct 2019 10:53:09 +0000 (12:53 +0200)
lib/pleroma/web/ostatus/handlers/delete_handler.ex

index b2f9f39463deab9d9324af6bd9995df55f9a1fcf..ac2dc115c33bb6165af6eaa55b777658e04baf71 100644 (file)
@@ -11,7 +11,7 @@ defmodule Pleroma.Web.OStatus.DeleteHandler do
   def handle_delete(entry, _doc \\ nil) do
     with id <- XML.string_from_xpath("//id", entry),
          %Object{} = object <- Object.normalize(id),
-         {:ok, delete} <- ActivityPub.delete(object, false) do
+         {:ok, delete} <- ActivityPub.delete(object, local: false) do
       delete
     end
   end