do not create notification for yourself
This commit is contained in:
parent
ffe028cd73
commit
89603eda9e
3 changed files with 12 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue