mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
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")
|
|> with_credentials(current_user.nickname, "test")
|
||||||
|> post(request_path)
|
|> post(request_path)
|
||||||
activity = Repo.get(Activity, note_activity.id)
|
activity = Repo.get(Activity, note_activity.id)
|
||||||
current_user = Repo.get_by(User, ap_id: note_activity.data["actor"])
|
activity_user = Repo.get_by(User, ap_id: note_activity.data["actor"])
|
||||||
assert json_response(response, 200) == ActivityRepresenter.to_map(activity, %{user: current_user})
|
assert json_response(response, 200) == ActivityRepresenter.to_map(activity, %{user: activity_user, for: current_user})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue