Fix User.get_or_fetch/1 with usernames starting with http
This commit is contained in:
parent
453a66f8c2
commit
50923f5438
2 changed files with 9 additions and 1 deletions
|
|
@ -850,6 +850,13 @@ defmodule Pleroma.UserTest do
|
|||
freshed_user = refresh_record(user)
|
||||
assert freshed_user == fetched_user
|
||||
end
|
||||
|
||||
test "gets an existing user by nickname starting with http" do
|
||||
user = insert(:user, nickname: "httpssome")
|
||||
{:ok, fetched_user} = User.get_or_fetch("httpssome")
|
||||
|
||||
assert user == fetched_user
|
||||
end
|
||||
end
|
||||
|
||||
describe "fetching a user from nickname or trying to build one" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue