Make sure incoming flags are updated with status data
authorMaxim Filippov <colixer@gmail.com>
Sun, 27 Oct 2019 13:17:37 +0000 (16:17 +0300)
committerMaxim Filippov <colixer@gmail.com>
Sun, 27 Oct 2019 13:17:37 +0000 (16:17 +0300)
test/web/activity_pub/transmogrifier_test.exs

index 1069ade02a0e8751ba11502b1c6a6fd696073265..4df3024a6c53ad878f1c646e97bfe8dbbe79e751 100644 (file)
@@ -1102,7 +1102,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
       message = %{
         "@context" => "https://www.w3.org/ns/activitystreams",
         "cc" => [user.ap_id],
-        "object" => [user.ap_id, activity],
+        "object" => [user.ap_id, activity.data["id"]],
         "type" => "Flag",
         "content" => "blocked AND reported!!!",
         "actor" => other_user.ap_id