replace Repo.get_by(User, ap_id: ap_id) with User.get_by_ap_id(ap_id)
This commit is contained in:
parent
88d3cb44c3
commit
9a59c26619
4 changed files with 6 additions and 6 deletions
|
|
@ -99,7 +99,7 @@ defmodule Pleroma.Web.Salmon.SalmonTest do
|
|||
}
|
||||
|
||||
{:ok, activity} = Repo.insert(%Activity{data: activity_data, recipients: activity_data["to"]})
|
||||
user = Repo.get_by(User, ap_id: activity.data["actor"])
|
||||
user = User.get_by_ap_id(activity.data["actor"])
|
||||
{:ok, user} = Pleroma.Web.WebFinger.ensure_keys_present(user)
|
||||
|
||||
poster = fn url, _data, _headers ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue