diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-06-26 11:24:28 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-06-26 11:24:28 -0500 |
commit | fd5e797379155e5a85deb88dc79f8fbca483948e (patch) | |
tree | bf7790ebc43a79cdb87815b0de271126fb9fe606 /test/web/twitter_api/util_controller_test.exs | |
parent | b950fb01db51f14a9fd3a827b90573418a5b95da (diff) | |
download | pleroma-fd5e797379155e5a85deb88dc79f8fbca483948e.tar.gz pleroma-fd5e797379155e5a85deb88dc79f8fbca483948e.zip |
Simplify notification filtering settings further
Diffstat (limited to 'test/web/twitter_api/util_controller_test.exs')
-rw-r--r-- | test/web/twitter_api/util_controller_test.exs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs index 1133107f4..da3f6fa61 100644 --- a/test/web/twitter_api/util_controller_test.exs +++ b/test/web/twitter_api/util_controller_test.exs @@ -191,7 +191,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do test "it updates notification settings", %{user: user, conn: conn} do conn |> put("/api/pleroma/notification_settings", %{ - "from_followers" => false, + "block_from_strangers" => true, "bar" => 1 }) |> json_response(:ok) @@ -199,9 +199,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do user = refresh_record(user) assert %Pleroma.User.NotificationSetting{ - from_followers: false, - from_following: true, - from_strangers: true, + block_from_strangers: true, privacy_option: false } == user.notification_settings end @@ -214,9 +212,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do user = refresh_record(user) assert %Pleroma.User.NotificationSetting{ - from_followers: true, - from_following: true, - from_strangers: true, + block_from_strangers: false, privacy_option: true } == user.notification_settings end |