Use correct logic to determine "attentions" list
[akkoma] / test / web / twitter_api / views / activity_view_test.exs
index 4aa8c16bc90f37fb4f24c3d0285f183ca86fb526..8b5a16add9b12d30f0cf0be0c067620e01ee469e 100644 (file)
@@ -118,7 +118,9 @@ defmodule Pleroma.Web.TwitterAPI.ActivityViewTest do
     expected = %{
       "activity_type" => "post",
       "attachments" => [],
-      "attentions" => Enum.map([other_user, user], fn u -> UserView.render("show.json", %{user: u}) end),
+      "attentions" => [
+        UserView.render("show.json", %{user: other_user})
+      ],
       "created_at" => activity.data["object"]["published"] |> Utils.date_to_asctime(),
       "external_url" => activity.data["object"]["id"],
       "fave_num" => 0,