diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2020-06-15 15:24:55 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-06-15 15:24:55 +0300 |
commit | 579763126f52b21733e84594f36b86e270b3005d (patch) | |
tree | 2b183b4b4ac4be2a4b64da87adc7ed56b7222f39 /test/notification_test.exs | |
parent | efdfc85c2d8e5118c1aa18e4f04026ec90cd11d2 (diff) | |
parent | 448e93ce2c1eab9eb91118b90f661c31056e4781 (diff) | |
download | pleroma-579763126f52b21733e84594f36b86e270b3005d.tar.gz pleroma-579763126f52b21733e84594f36b86e270b3005d.zip |
Merge branch 'develop' into issue/1855
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 |