mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 18:17:55 +00:00
user: use Object.normalize() instead of Object.get_by_ap_id() directly.
This commit is contained in:
parent
b036a19c21
commit
47189531c5
|
@ -607,7 +607,7 @@ defmodule Pleroma.User do
|
|||
|> Enum.each(fn activity ->
|
||||
case activity.data["type"] do
|
||||
"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.
|
||||
_ ->
|
||||
|
|
Loading…
Reference in a new issue