diff options
author | csaurus <csaurus@mailbox.org> | 2018-05-21 20:19:37 -0400 |
---|---|---|
committer | csaurus <csaurus@mailbox.org> | 2018-05-21 20:19:37 -0400 |
commit | 4fd9df100f61dfe4731934eca86500472d866f60 (patch) | |
tree | 736ff0c55cde3890018a189edb8993ce4dead80b /test/notification_test.exs | |
parent | d0ad13c12e1410e7a11d5a5f7f5b84cad5f77732 (diff) | |
parent | b4064dfe30b792f5d6d36b72c7cd530afb1c667a (diff) | |
download | pleroma-4fd9df100f61dfe4731934eca86500472d866f60.tar.gz pleroma-4fd9df100f61dfe4731934eca86500472d866f60.zip |
Merge branch 'develop' into feature/mstdn-direct-api
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r-- | test/notification_test.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs index 568ad642c..2ca1ac13d 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -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 |