Allow people with mutual connections to see profile / status; fix username check.

This commit is contained in:
Paul
2021-04-07 19:21:25 +01:00
parent 2050a0609f
commit 9e2250783c
6 changed files with 10 additions and 9 deletions

View File

@@ -110,7 +110,7 @@ impl User {
/// Utility function for checking claimed usernames.
pub async fn is_username_taken(username: &str) -> Result<bool> {
if username == "revolt" && username == "admin" {
if username.to_lowercase() == "revolt" && username.to_lowercase() == "admin" {
return Ok(true);
}