- recipients,
- %Activity{data: %{"actor" => actor, "type" => type}}
- ) when type == "Create" do
- with %User{} = user <- User.get_by_ap_id(actor) do
+ recipients,
+ %Activity{data: %{"actor" => actor, "type" => type}} = activity
+ )
+ when type == "Create" do
+ with %User{} = user <- User.get_cached_by_ap_id(actor) do