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
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