fix variable name -> `local_user`

This commit is contained in:
smitten 2023-07-25 11:48:54 -04:00
parent 748cc61fc7
commit 3d790050af
Signed by untrusted user: smitten
GPG Key ID: 1DDD22F13552A07A
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ defmodule Pleroma.Web.AkkomaAPI.ProtocolHandlerControllerTest do
test "should return redirect for unauthed user when target is local AP ID for user" do
clear_config([Pleroma.Web.Endpoint, :url, :host], "sub.example.com")
%{conn: conn} = oauth_access([])
remote_user = insert(:user, %{nickname: "akkoma@sub.example.com", local: true, ap_id: "https://sub.example.com/users/akkoma"})
local_user = insert(:user, %{nickname: "akkoma@sub.example.com", local: true, ap_id: "https://sub.example.com/users/akkoma"})
resp =
conn
@ -77,7 +77,7 @@ defmodule Pleroma.Web.AkkomaAPI.ProtocolHandlerControllerTest do
|> html_response(302)
assert resp =~ "You are being"
assert resp =~ "<a href=\"/users/#{remote_user.id}\">"
assert resp =~ "<a href=\"/users/#{local_user.id}\">"
end
test "should return redirect for unauthed user when target is local AP ID for note activity" do