Fix retweet spec.
This commit is contained in:
parent
2f0e13abe2
commit
22e936372e
1 changed files with 2 additions and 2 deletions
|
@ -344,8 +344,8 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
|
|||
|> with_credentials(current_user.nickname, "test")
|
||||
|> post(request_path)
|
||||
activity = Repo.get(Activity, note_activity.id)
|
||||
current_user = Repo.get_by(User, ap_id: note_activity.data["actor"])
|
||||
assert json_response(response, 200) == ActivityRepresenter.to_map(activity, %{user: current_user})
|
||||
activity_user = Repo.get_by(User, ap_id: note_activity.data["actor"])
|
||||
assert json_response(response, 200) == ActivityRepresenter.to_map(activity, %{user: activity_user, for: current_user})
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue