fix: user avatar mime change from gif to avif
This commit is contained in:
parent
ffdb767518
commit
6e0f2985b9
20 changed files with 219 additions and 104 deletions
|
@ -350,6 +350,7 @@ fn default_banned_usernames() -> Vec<String> {
|
|||
"stack".to_string(),
|
||||
"search".to_string(),
|
||||
"journals".to_string(),
|
||||
"links".to_string(),
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
@ -141,6 +141,6 @@ impl DataManager {
|
|||
auto_method!(update_link_label(&str) -> "UPDATE links SET label = $1 WHERE id = $2" --cache-key-tmpl="atto.link:{}");
|
||||
auto_method!(update_link_href(&str) -> "UPDATE links SET href = $1 WHERE id = $2" --cache-key-tmpl="atto.link:{}");
|
||||
auto_method!(update_link_upload_id(i64) -> "UPDATE links SET upload_id = $1 WHERE id = $2" --cache-key-tmpl="atto.link:{}");
|
||||
auto_method!(update_link_clicks(i32) -> "UPDATE links SET clicks = $1 WHERE id = $2" --cache-key-tmpl="atto.link:{}");
|
||||
auto_method!(update_link_position(i32) -> "UPDATE links SET position = $1 WHERE id = $2" --cache-key-tmpl="atto.link:{}");
|
||||
auto_method!(incr_link_clicks() -> "UPDATE links SET clicks = $1 WHERE id = $2" --cache-key-tmpl="atto.link:{}" --incr);
|
||||
}
|
||||
|
|
|
@ -16,6 +16,8 @@ pub enum PacketType {
|
|||
Crud(CrudMessageType),
|
||||
/// A text key which identifies the socket.
|
||||
Key,
|
||||
/// JavaScript text.
|
||||
Javascript,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, PartialEq, Eq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue