Commit 6a6aaa0e authored by scarlett's avatar scarlett
Browse files

Use object.normalize.

parent 8a1df182
defmodule Pleroma.Web.ActivityPub.MRF.EnsureRePrepended do
alias Pleroma.Activity
alias Pleroma.Object
@behaviour Pleroma.Web.ActivityPub.MRF
......@@ -20,11 +20,11 @@ def filter_by_summary(parent, child), do: child
def filter(%{"type" => activity_type} = object) when activity_type == "Create" do
child = object["object"]
in_reply_to = Activity.get_create_activity_by_object_ap_id(child["inReplyTo"])
in_reply_to = Object.normalize(child["inReplyTo"])
child =
do: filter_by_summary(["object"], child),
do: filter_by_summary(, child),
else: child
Supports Markdown
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