s/get_by_ap_id/get_cached_by_ap_id/
authorsquidboi <squidboi@waifu.club>
Fri, 8 Jun 2018 05:33:50 +0000 (22:33 -0700)
committersquidboi <squidboi@waifu.club>
Fri, 8 Jun 2018 05:33:50 +0000 (22:33 -0700)
lib/pleroma/web/activity_pub/mrf/reject_non_public.ex

index fe257214ea82d2ba270e1b2cc83c5152a1e2746b..879cbe6deb74ee2608d3e0beedfc7adaa4c034a7 100644 (file)
@@ -5,7 +5,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublic do
   @impl true
   def filter(object) do
     if object["type"] == "Create" do
-      user = User.get_by_ap_id(object["actor"])
+      user = User.get_cached_by_ap_id(object["actor"])
       public = "https://www.w3.org/ns/activitystreams#Public"
 
       # Determine visibility