aboutsummaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-06-15 07:57:58 +0000
committerlain <lain@soykaf.club>2020-06-15 12:05:09 +0200
commit43eb4144d601442b0edb7f7e87c2f50d64276e1e (patch)
tree43c28b196fa5ba62bf303dcc512e8cd0128bc526 /test/notification_test.exs
parent271ea5068f4e3b901cb3f682e132378246daf452 (diff)
parentb15cfc3d365dcfa5f99159fe06e29de6f8aceb4f (diff)
downloadpleroma-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.exs8
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