fix: don't show replies in main timelines

fix: add ui debounce
fix: make usernames case insensitive
This commit is contained in:
trisua 2025-04-03 16:47:48 -04:00
parent 9f4e8a4d25
commit 8a9394a06a
6 changed files with 14 additions and 8 deletions

View file

@ -76,11 +76,13 @@ impl DataManager {
///
/// # Arguments
/// * `data` - a mock [`User`] object to insert
pub async fn create_user(&self, data: User) -> Result<()> {
pub async fn create_user(&self, mut data: User) -> Result<()> {
if self.0.security.registration_enabled == false {
return Err(Error::RegistrationDisabled);
}
data.username = data.username.to_lowercase();
// check values
if data.username.len() < 2 {
return Err(Error::DataTooShort("username".to_string()));