change Repo.get(Activity, id) => Activity.get_by_id(id) in tests
This commit is contained in:
parent
1b3d921921
commit
11c2d6bdc4
10 changed files with 32 additions and 33 deletions
|
|
@ -281,7 +281,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityViewTest do
|
|||
|
||||
convo_id = Utils.context_to_conversation_id(activity.data["object"]["context"])
|
||||
|
||||
activity = Repo.get(Activity, activity.id)
|
||||
activity = Activity.get_by_id(activity.id)
|
||||
|
||||
result = ActivityView.render("activity.json", activity: announce)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue