diff options
author | lain <lain@soykaf.club> | 2020-06-15 07:57:58 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-15 12:05:09 +0200 |
commit | 43eb4144d601442b0edb7f7e87c2f50d64276e1e (patch) | |
tree | 43c28b196fa5ba62bf303dcc512e8cd0128bc526 /test/notification_test.exs | |
parent | 271ea5068f4e3b901cb3f682e132378246daf452 (diff) | |
parent | b15cfc3d365dcfa5f99159fe06e29de6f8aceb4f (diff) | |
download | pleroma-namespace-move-notification.tar.gz |
Merge branch 'notifications-filtering' into 'develop'namespace-move-notification
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 |