projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into pleroma-2.1-rc0
[akkoma]
/
test
/
web
/
push
/
impl_test.exs
diff --git
a/test/web/push/impl_test.exs
b/test/web/push/impl_test.exs
index b48952b29026ffde4f12e2017736d4875ea69063..aeb5c1fbd3216dbbb243f0cd6cbda62a158eef1d 100644
(file)
--- a/
test/web/push/impl_test.exs
+++ b/
test/web/push/impl_test.exs
@@
-238,9
+238,11
@@
defmodule Pleroma.Web.Push.ImplTest do
}
end
}
end
- test "hides
details for notifications when privacy
option enabled" do
+ test "hides
contents of notifications when
option enabled" do
user = insert(:user, nickname: "Bob")
user = insert(:user, nickname: "Bob")
- user2 = insert(:user, nickname: "Rob", notification_settings: %{privacy_option: true})
+
+ user2 =
+ insert(:user, nickname: "Rob", notification_settings: %{hide_notification_contents: true})
{:ok, activity} =
CommonAPI.post(user, %{
{:ok, activity} =
CommonAPI.post(user, %{
@@
-284,9
+286,11
@@
defmodule Pleroma.Web.Push.ImplTest do
}
end
}
end
- test "returns regular content
for notifications with privacy
option disabled" do
+ test "returns regular content
when hiding contents
option disabled" do
user = insert(:user, nickname: "Bob")
user = insert(:user, nickname: "Bob")
- user2 = insert(:user, nickname: "Rob", notification_settings: %{privacy_option: false})
+
+ user2 =
+ insert(:user, nickname: "Rob", notification_settings: %{hide_notification_contents: false})
{:ok, activity} =
CommonAPI.post(user, %{
{:ok, activity} =
CommonAPI.post(user, %{