diff options
author | rinpatch <rinpatch@sdf.org> | 2019-04-17 16:35:01 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-04-17 16:35:01 +0300 |
commit | 4c289e924e2ef7863a2c95b74f71fd83969b7827 (patch) | |
tree | 00e275c9536e0efec1ec311f041f8b4d5f094014 /lib | |
parent | 8e4d950f31ec3ea956f6892f9f36b419344bf930 (diff) | |
download | pleroma-4c289e924e2ef7863a2c95b74f71fd83969b7827.tar.gz |
Fix delete-by_ap_id to expect not only embeded objects
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/activity.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/activity.ex b/lib/pleroma/activity.ex index 478d16356..9043530c9 100644 --- a/lib/pleroma/activity.ex +++ b/lib/pleroma/activity.ex @@ -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) |