Allow people with mutual connections to see profile / status; fix username check.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user