projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'optimize-command_available' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
activity_pub
/
mrf
/
ensure_re_prepended.ex
diff --git
a/lib/pleroma/web/activity_pub/mrf/ensure_re_prepended.ex
b/lib/pleroma/web/activity_pub/mrf/ensure_re_prepended.ex
index 2627a00073428d38dd2df75f07ec3d679351a740..2d3a10889b61eebff3efccfc7804cb15cfa36de9 100644
(file)
--- a/
lib/pleroma/web/activity_pub/mrf/ensure_re_prepended.ex
+++ b/
lib/pleroma/web/activity_pub/mrf/ensure_re_prepended.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.MRF.EnsureRePrepended do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.MRF.EnsureRePrepended do
@@
-27,10
+27,11
@@
defmodule Pleroma.Web.ActivityPub.MRF.EnsureRePrepended do
def filter_by_summary(_in_reply_to, child), do: child
def filter_by_summary(_in_reply_to, child), do: child
- def filter(%{"type" => "Create", "object" => child_object} = object) do
+ def filter(%{"type" => "Create", "object" => child_object} = object)
+ when is_map(child_object) do
child =
child_object["inReplyTo"]
child =
child_object["inReplyTo"]
- |> Object.normalize(
child_object["inReplyTo"]
)
+ |> Object.normalize(
fetch: false
)
|> filter_by_summary(child_object)
object = Map.put(object, "object", child)
|> filter_by_summary(child_object)
object = Map.put(object, "object", child)