Fix format.
[akkoma] / test / notification_test.exs
index 568ad642cf37ee764864915c0e5fa0bf6dfc579f..2ca1ac13daf679c136c587ba981dd1f74821c57b 100644 (file)
@@ -33,6 +33,13 @@ defmodule Pleroma.NotificationTest do
 
       assert nil == Notification.create_notification(activity, user)
     end
+
+    test "it doesn't create a notification for user if he is the activity author" do
+      activity = insert(:note_activity)
+      author = User.get_by_ap_id(activity.data["actor"])
+
+      assert nil == Notification.create_notification(activity, author)
+    end
   end
 
   describe "get notification" do