diff options
author | lain <lain@soykaf.club> | 2020-06-15 07:57:58 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-15 07:57:58 +0000 |
commit | 448e93ce2c1eab9eb91118b90f661c31056e4781 (patch) | |
tree | 156ff3c3c0fb6eb12064e536ae5a754048b48af4 /test/notification_test.exs | |
parent | 271ea5068f4e3b901cb3f682e132378246daf452 (diff) | |
parent | b15cfc3d365dcfa5f99159fe06e29de6f8aceb4f (diff) | |
download | pleroma-448e93ce2c1eab9eb91118b90f661c31056e4781.tar.gz pleroma-448e93ce2c1eab9eb91118b90f661c31056e4781.zip |
Merge branch 'notifications-filtering' into 'develop'
Mastodon API return full result set in notifications
See merge request pleroma/pleroma!2552
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 |