X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Fnotification_test.exs;h=526f43fab7a53f1313bd602e2f0f392a6c70820c;hb=35e9282ffdafd8a04d1c09ec5eff3f176bb389de;hp=b9bbdceca84ca814122d48e0b93ed4da4dc1c6ed;hpb=3b5282bef29656f081750a0d9b06a42b912520de;p=akkoma 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