Use User.get_cached* everywhere

This commit is contained in:
Egor 2019-04-22 07:20:43 +00:00 committed by kaniini
commit b9cdf6d3b9
42 changed files with 255 additions and 229 deletions

View file

@ -99,7 +99,7 @@ defmodule Pleroma.Web.Salmon.SalmonTest do
}
{:ok, activity} = Repo.insert(%Activity{data: activity_data, recipients: activity_data["to"]})
user = User.get_by_ap_id(activity.data["actor"])
user = User.get_cached_by_ap_id(activity.data["actor"])
{:ok, user} = Pleroma.Web.WebFinger.ensure_keys_present(user)
poster = fn url, _data, _headers ->