projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e4d950
)
Fix delete-by_ap_id to expect not only embeded objects
author
rinpatch
<rinpatch@sdf.org>
Wed, 17 Apr 2019 13:35:01 +0000
(16:35 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Wed, 17 Apr 2019 13:35:01 +0000
(16:35 +0300)
lib/pleroma/activity.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/activity.ex
b/lib/pleroma/activity.ex
index 478d163564bc2a4788d711d600218edbfb8e90b4..9043530c9caebfb5fbdc93cc937464210a145a5a 100644
(file)
--- 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)