aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/notification.ex
diff options
context:
space:
mode:
authorEgor <egor@kislitsyn.com>2019-04-22 07:20:43 +0000
committerkaniini <nenolod@gmail.com>2019-04-22 07:20:43 +0000
commitb9cdf6d3b9940fded7d6be9f8771fd9c211afdd4 (patch)
tree4cb4fc190215842d6a14c4a202ff2fda32cc223a /lib/pleroma/notification.ex
parent05862ded7a156ad6db16a70ec90045a2149da97d (diff)
downloadpleroma-b9cdf6d3b9940fded7d6be9f8771fd9c211afdd4.tar.gz
Use `User.get_cached*` everywhere
Diffstat (limited to 'lib/pleroma/notification.ex')
-rw-r--r--lib/pleroma/notification.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex
index b357d5399..dd274cf6b 100644
--- a/lib/pleroma/notification.ex
+++ b/lib/pleroma/notification.ex
@@ -196,7 +196,7 @@ defmodule Pleroma.Notification do
def skip?(:follows, activity, %{info: %{notification_settings: %{"follows" => false}}} = user) do
actor = activity.data["actor"]
- followed = User.get_by_ap_id(actor)
+ followed = User.get_cached_by_ap_id(actor)
User.following?(user, followed)
end