diff options
| author | lain <lain@soykaf.club> | 2020-07-29 10:53:08 +0200 | 
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-07-29 10:53:08 +0200 | 
| commit | edf8b6abfeba487406db756254a00524e3a9dce2 (patch) | |
| tree | 31084b3b878c6fb8b1df4d4f22febbc97199b9b2 /lib | |
| parent | 93dbba9b8a5aacbbf43a45a07e27b328579eabf8 (diff) | |
| download | pleroma-edf8b6abfeba487406db756254a00524e3a9dce2.tar.gz pleroma-edf8b6abfeba487406db756254a00524e3a9dce2.zip | |
EnsureRePrepended: Don't break on chat messages.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/pleroma/web/activity_pub/mrf/ensure_re_prepended.ex | 3 | 
1 files changed, 2 insertions, 1 deletions
| 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 2627a0007..3bf70b894 100644 --- a/lib/pleroma/web/activity_pub/mrf/ensure_re_prepended.ex +++ b/lib/pleroma/web/activity_pub/mrf/ensure_re_prepended.ex @@ -27,7 +27,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.EnsureRePrepended do    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"]) | 
