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

This commit is contained in:
Egor Kislitsyn 2019-04-02 17:08:03 +07:00
commit 11c2d6bdc4
10 changed files with 32 additions and 33 deletions

View file

@ -116,10 +116,10 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do
{:ok, announce, _object} = ActivityPub.announce(user, object)
announce = Repo.get(Activity, announce.id)
announce = Activity.get_by_id(announce.id)
note_user = User.get_cached_by_ap_id(note.data["actor"])
note = Repo.get(Activity, note.id)
note = Activity.get_by_id(note.id)
note_xml =
ActivityRepresenter.to_simple_form(note, note_user, true)