change Repo.get(Activity, id) => Activity.get_by_id(id)

This commit is contained in:
Egor Kislitsyn 2019-04-02 16:50:31 +07:00
commit 4212527928
6 changed files with 13 additions and 14 deletions

View file

@ -354,7 +354,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
[state, actor, object]
)
activity = Repo.get(Activity, activity.id)
activity = Activity.get_by_id(activity.id)
{:ok, activity}
rescue
e ->