forked from jmug/stoatchat
Fix username block list.
This commit is contained in:
1 parent
1872432725
commit
27a9fc3e21
4 files changed
+5
-5
No files matched your search
@@ -159,7 +159,7 @@ impl User {
|
||||
|
||||
/// Utility function for checking claimed usernames.
|
||||
pub async fn is_username_taken(username: &str) -> Result<bool> {
|
||||
if username.to_lowercase() == "revolt" && username.to_lowercase() == "admin" {
|
||||
if username.to_lowercase() == "revolt" || username.to_lowercase() == "admin" {
|
||||
return Ok(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user