diff options
author | Maxim Filippov <colixer@gmail.com> | 2019-01-24 23:30:43 +0300 |
---|---|---|
committer | Maxim Filippov <colixer@gmail.com> | 2019-01-24 23:30:43 +0300 |
commit | 9274cabe01977a3c2d35059d7889c63e2bd54de1 (patch) | |
tree | ecae741986073357bfececcea46e689b7c8a1340 /test | |
parent | 0a97baddddbb8bf89c806f7e5b7cd754c88f4fe5 (diff) | |
download | pleroma-9274cabe01977a3c2d35059d7889c63e2bd54de1.tar.gz |
Use correct logic to determine "attentions" list
Diffstat (limited to 'test')
-rw-r--r-- | test/web/twitter_api/views/activity_view_test.exs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/web/twitter_api/views/activity_view_test.exs b/test/web/twitter_api/views/activity_view_test.exs index 0f514dab1..8b5a16add 100644 --- a/test/web/twitter_api/views/activity_view_test.exs +++ b/test/web/twitter_api/views/activity_view_test.exs @@ -118,8 +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, |