mirror of
https://github.com/LemmyNet/lemmy.git
synced 2026-04-26 10:29:43 -05:00
* Allow Arabic and Cyrillic usernames/community names (fixes #1764) * update comment
This commit is contained in:
@@ -129,3 +129,21 @@ test("Requests with invalid auth should be treated as unauthenticated", async ()
|
||||
let posts = invalid_auth.getPosts(form);
|
||||
expect((await posts).posts).toBeDefined();
|
||||
});
|
||||
|
||||
test("Create user with Arabic name", async () => {
|
||||
let userRes = await registerUser(alpha, "تجريب");
|
||||
expect(userRes.jwt).toBeDefined();
|
||||
let user = new LemmyHttp(alphaUrl, {
|
||||
headers: { Authorization: `Bearer ${userRes.jwt ?? ""}` },
|
||||
});
|
||||
|
||||
let site = await getSite(user);
|
||||
expect(site.my_user).toBeDefined();
|
||||
if (!site.my_user) {
|
||||
throw "Missing site user";
|
||||
}
|
||||
apShortname = `@${site.my_user.local_user_view.person.name}@lemmy-alpha:8541`;
|
||||
|
||||
let alphaPerson = (await resolvePerson(alpha, apShortname)).person;
|
||||
expect(alphaPerson).toBeDefined();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user