[Database] Add 'creation_datetime' to User + some little things
This commit is contained in:
parent
91ab379718
commit
7a09e2360e
14 changed files with 179 additions and 131 deletions
|
|
@ -245,7 +245,11 @@ async fn translation(
|
|||
.map(|l| l.split('-').next().unwrap_or_default())
|
||||
.find_or_first(|l| available_codes.contains(l));
|
||||
|
||||
accept_language.unwrap_or("en").to_string()
|
||||
match accept_language {
|
||||
Some(lang) if !lang.is_empty() => lang,
|
||||
_ => translation::DEFAULT_LANGUAGE_CODE,
|
||||
}
|
||||
.to_string()
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue