s/get_by_ap_id/get_cached_by_ap_id/

This commit is contained in:
squidboi 2018-06-07 22:33:50 -07:00
parent 6e7f91bf8f
commit e2c4013c88
No known key found for this signature in database
GPG Key ID: 018925A9B65D2457

View File

@ -5,7 +5,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublic do
@impl true @impl true
def filter(object) do def filter(object) do
if object["type"] == "Create" 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" public = "https://www.w3.org/ns/activitystreams#Public"
# Determine visibility # Determine visibility