Skip to content
Snippets Groups Projects
Commit 4c289e92 authored by rinpatch's avatar rinpatch
Browse files

Fix delete-by_ap_id to expect not only embeded objects

parent 8e4d950f
Branches
Tags
No related merge requests found
......@@ -230,6 +230,7 @@ defmodule Pleroma.Activity do
|> Repo.delete_all()
|> elem(1)
|> Enum.find(fn
%{data: %{"type" => "Create", "object" => ap_id}} when is_binary(ap_id) -> ap_id == id
%{data: %{"type" => "Create", "object" => %{"id" => ap_id}}} -> ap_id == id
_ -> nil
end)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment