activitypub: utils: also match Activity objects
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Mar 2019 19:29:04 +0000 (19:29 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 14 Mar 2019 19:29:04 +0000 (19:29 +0000)
lib/pleroma/web/activity_pub/utils.ex

index 9881b7bbbc6b9886e243e7b218eb067187ecff25..af317245f59b07497489b4b90a3893a300a7019a 100644 (file)
@@ -623,6 +623,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
   def make_flag_data(params, additional) do
     status_ap_ids =
       Enum.map(params.statuses || [], fn
+        %Activity{} = act -> act.data["id"]
         act when is_map(act) -> act["id"]
         act when is_binary(act) -> act
       end)