summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/views/account_view_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-13 12:44:16 +0200
committerlain <lain@soykaf.club>2020-05-13 12:44:16 +0200
commit3cff4e24cd8c56af47b1983ea97ec4643dbc183e (patch)
tree63e27727ca94f1b57832d6e872ad319c97719bbb /test/web/mastodon_api/views/account_view_test.exs
parentc0ea5c60e4e709d3d4415de42a65f878b55dc3bb (diff)
parent6706cdce65f8b2dda55380dbfdad5e41e600af2d (diff)
downloadpleroma-3cff4e24cd8c56af47b1983ea97ec4643dbc183e.tar.gz
pleroma-3cff4e24cd8c56af47b1983ea97ec4643dbc183e.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
Diffstat (limited to 'test/web/mastodon_api/views/account_view_test.exs')
-rw-r--r--test/web/mastodon_api/views/account_view_test.exs13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/web/mastodon_api/views/account_view_test.exs b/test/web/mastodon_api/views/account_view_test.exs
index ea21f2ce0..035b1f6ac 100644
--- a/test/web/mastodon_api/views/account_view_test.exs
+++ b/test/web/mastodon_api/views/account_view_test.exs
@@ -94,7 +94,14 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
test "Represent the user account for the account owner" do
user = insert(:user)
- notification_settings = %Pleroma.User.NotificationSetting{}
+ notification_settings = %{
+ followers: true,
+ follows: true,
+ non_followers: true,
+ non_follows: true,
+ privacy_option: false
+ }
+
privacy = user.default_scope
assert %{
@@ -455,8 +462,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
{:ok, _activity} =
CommonAPI.post(other_user, %{
- "status" => "Hey @#{user.nickname}.",
- "visibility" => "direct"
+ status: "Hey @#{user.nickname}.",
+ visibility: "direct"
})
user = User.get_cached_by_ap_id(user.ap_id)