diff options
| author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-07-23 15:08:30 +0300 | 
|---|---|---|
| committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-07-23 15:08:30 +0300 | 
| commit | 9ea51a6de516b37341a9566d11d0110c2d87c1b6 (patch) | |
| tree | 8d06667accd928ff0dc0fb1d85be3d6b2e99ccd7 /test/web/admin_api | |
| parent | 6f5f7af607518b6f67df68bab9bf76142e9a622c (diff) | |
| download | pleroma-9ea51a6de516b37341a9566d11d0110c2d87c1b6.tar.gz pleroma-9ea51a6de516b37341a9566d11d0110c2d87c1b6.zip | |
[#2791] AccountView: renamed `:force` option to `:skip_visibility_check`.
Diffstat (limited to 'test/web/admin_api')
| -rw-r--r-- | test/web/admin_api/views/report_view_test.exs | 14 | 
1 files changed, 10 insertions, 4 deletions
| diff --git a/test/web/admin_api/views/report_view_test.exs b/test/web/admin_api/views/report_view_test.exs index e171509e5..5a02292be 100644 --- a/test/web/admin_api/views/report_view_test.exs +++ b/test/web/admin_api/views/report_view_test.exs @@ -24,12 +24,15 @@ defmodule Pleroma.Web.AdminAPI.ReportViewTest do        content: nil,        actor:          Map.merge( -          MastodonAPI.AccountView.render("show.json", %{user: user, force: true}), +          MastodonAPI.AccountView.render("show.json", %{user: user, skip_visibility_check: true}),            AdminAPI.AccountView.render("show.json", %{user: user})          ),        account:          Map.merge( -          MastodonAPI.AccountView.render("show.json", %{user: other_user, force: true}), +          MastodonAPI.AccountView.render("show.json", %{ +            user: other_user, +            skip_visibility_check: true +          }),            AdminAPI.AccountView.render("show.json", %{user: other_user})          ),        statuses: [], @@ -59,12 +62,15 @@ defmodule Pleroma.Web.AdminAPI.ReportViewTest do        content: nil,        actor:          Map.merge( -          MastodonAPI.AccountView.render("show.json", %{user: user, force: true}), +          MastodonAPI.AccountView.render("show.json", %{user: user, skip_visibility_check: true}),            AdminAPI.AccountView.render("show.json", %{user: user})          ),        account:          Map.merge( -          MastodonAPI.AccountView.render("show.json", %{user: other_user, force: true}), +          MastodonAPI.AccountView.render("show.json", %{ +            user: other_user, +            skip_visibility_check: true +          }),            AdminAPI.AccountView.render("show.json", %{user: other_user})          ),        statuses: [StatusView.render("show.json", %{activity: activity})], | 
