Simplify notification filtering settings further
This commit is contained in:
parent
b950fb01db
commit
fd5e797379
9 changed files with 15 additions and 123 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue