projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Merge branch 'add-frontend-config-collapseMessageWithSubject' into 'develop'"
[akkoma]
/
test
/
notification_test.exs
diff --git
a/test/notification_test.exs
b/test/notification_test.exs
index 568ad642cf37ee764864915c0e5fa0bf6dfc579f..2ca1ac13daf679c136c587ba981dd1f74821c57b 100644
(file)
--- 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
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
end
describe "get notification" do