summaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2019-05-01 12:32:17 -0500
committerMark Felder <feld@FreeBSD.org>2019-05-01 12:32:17 -0500
commit3c4cab9be18ff543d025177b418ddd0b16050e68 (patch)
tree3b4d32c978ecfaa656256509bf390d6ca22c6679 /test/notification_test.exs
parent9a98f48ec3f438e543a5a621624401bb22a0d44a (diff)
parent41d78f91083b5017e6085150bfae71a842f5c47f (diff)
downloadpleroma-3c4cab9be18ff543d025177b418ddd0b16050e68.tar.gz
pleroma-3c4cab9be18ff543d025177b418ddd0b16050e68.zip
Merge branch 'develop' into update-oauth-template
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r--test/notification_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs
index c3db77b6c..581db58a8 100644
--- a/test/notification_test.exs
+++ b/test/notification_test.exs
@@ -46,7 +46,7 @@ defmodule Pleroma.NotificationTest do
describe "create_notification" do
test "it doesn't create a notification for user if the user blocks the activity author" do
activity = insert(:note_activity)
- author = User.get_by_ap_id(activity.data["actor"])
+ author = User.get_cached_by_ap_id(activity.data["actor"])
user = insert(:user)
{:ok, user} = User.block(user, author)
@@ -124,7 +124,7 @@ defmodule Pleroma.NotificationTest do
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"])
+ author = User.get_cached_by_ap_id(activity.data["actor"])
assert nil == Notification.create_notification(activity, author)
end