Add before, after and sort support to search.

This commit is contained in:
Paul
2021-07-21 18:26:35 +01:00
parent 27a9fc3e21
commit 1a8006b3e4
4 changed files with 59 additions and 18 deletions

View File

@@ -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" || username.to_lowercase() == "system" {
return Ok(true);
}