projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feat/rich-media-improvements' 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 df8dc88d51d1c6eea857700a8d543587caa55d3f..3bf70b8946b90f9248607d15ceaecbb3e63cc7e2 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-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
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,7
+27,8
@@
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"]
|> Object.normalize(child_object["inReplyTo"])
child =
child_object["inReplyTo"]
|> Object.normalize(child_object["inReplyTo"])
@@
-40,5
+41,5
@@
defmodule Pleroma.Web.ActivityPub.MRF.EnsureRePrepended do
def filter(object), do: {:ok, object}
def filter(object), do: {:ok, object}
- def describe
()
, do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
end