diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-05-26 00:20:54 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-05-26 00:20:54 +0000 |
commit | 45e4642a58f5299d2cd3f142aea110a474eb477f (patch) | |
tree | 699865fdfcaf3937c6bcb774d61ea64d04b042bc /test/notification_test.exs | |
parent | 750ede5764d30063587182696f7ebc50c05f8278 (diff) | |
download | pleroma-45e4642a58f5299d2cd3f142aea110a474eb477f.tar.gz pleroma-45e4642a58f5299d2cd3f142aea110a474eb477f.zip |
tests: chase remote/local removal
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r-- | test/notification_test.exs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs index b54414dcd..be292abd9 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -78,33 +78,6 @@ defmodule Pleroma.NotificationTest do assert nil == Notification.create_notification(activity, muter) end - test "it disables notifications from people on remote instances" do - user = insert(:user, info: %{notification_settings: %{"remote" => false}}) - other_user = insert(:user) - - create_activity = %{ - "@context" => "https://www.w3.org/ns/activitystreams", - "type" => "Create", - "to" => ["https://www.w3.org/ns/activitystreams#Public"], - "actor" => other_user.ap_id, - "object" => %{ - "type" => "Note", - "content" => "Hi @#{user.nickname}", - "attributedTo" => other_user.ap_id - } - } - - {:ok, %{local: false} = activity} = Transmogrifier.handle_incoming(create_activity) - assert nil == Notification.create_notification(activity, user) - end - - test "it disables notifications from people on the local instance" do - user = insert(:user, info: %{notification_settings: %{"local" => false}}) - other_user = insert(:user) - {:ok, activity} = CommonAPI.post(other_user, %{"status" => "hey @#{user.nickname}"}) - assert nil == Notification.create_notification(activity, user) - end - test "it disables notifications from followers" do follower = insert(:user) followed = insert(:user, info: %{notification_settings: %{"followers" => false}}) |