diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-06-15 16:03:40 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-06-15 16:03:40 +0400 |
commit | 58e4e3db8b04933129303d0ad9da74b43cbb4003 (patch) | |
tree | 28cc28e116b8a8091e686ebc7a17f3c783d7ad04 /test/notification_test.exs | |
parent | 09d31d24de568aac06fe203beeb8bb2a9de8f602 (diff) | |
parent | 448e93ce2c1eab9eb91118b90f661c31056e4781 (diff) | |
download | pleroma-58e4e3db8b04933129303d0ad9da74b43cbb4003.tar.gz |
Merge remote-tracking branch 'origin/develop' into merge-ogp-twitter-parsers
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r-- | test/notification_test.exs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs index b9bbdceca..526f43fab 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -306,6 +306,14 @@ defmodule Pleroma.NotificationTest do assert {:ok, []} == Notification.create_notifications(status) end + + test "it disables notifications from people who are invisible" do + author = insert(:user, invisible: true) + user = insert(:user) + + {:ok, status} = CommonAPI.post(author, %{status: "hey @#{user.nickname}"}) + refute Notification.create_notification(status, user) + end end describe "follow / follow_request notifications" do |