Commit 47189531 authored by kaniini's avatar kaniini
Browse files

user: use Object.normalize() instead of Object.get_by_ap_id() directly.

parent b036a19c
...@@ -607,7 +607,7 @@ def delete(%User{} = user) do ...@@ -607,7 +607,7 @@ def delete(%User{} = user) do
|> Enum.each(fn activity -> |> Enum.each(fn activity ->
case activity.data["type"] do case activity.data["type"] do
"Create" -> "Create" ->
ActivityPub.delete(Object.get_by_ap_id(activity.data["object"]["id"])) ActivityPub.delete(Object.normalize(activity.data["object"]))
# TODO: Do something with likes, follows, repeats. # TODO: Do something with likes, follows, repeats.
_ -> _ ->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment