add: allow supporters to upload gif avatars/banners
This commit is contained in:
parent
cf38022597
commit
e727de9c63
10 changed files with 231 additions and 52 deletions
|
@ -199,6 +199,16 @@ pub struct UserSettings {
|
|||
/// The user's status. Shows over connection info.
|
||||
#[serde(default)]
|
||||
pub status: String,
|
||||
/// The mime type of the user's avatar.
|
||||
#[serde(default = "mime_avif")]
|
||||
pub avatar_mime: String,
|
||||
/// The mime type of the user's banner.
|
||||
#[serde(default = "mime_avif")]
|
||||
pub banner_mime: String,
|
||||
}
|
||||
|
||||
fn mime_avif() -> String {
|
||||
"image/avif".to_string()
|
||||
}
|
||||
|
||||
impl Default for User {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue