Increase max emoji size to 250 kB
This commit is contained in:
parent
fcb6554ebb
commit
0e68ea263c
2 changed files with 3 additions and 3 deletions
|
@ -371,8 +371,8 @@ pub async fn handle_note(
|
||||||
} else if tag_type == EMOJI {
|
} else if tag_type == EMOJI {
|
||||||
let tag: EmojiTag = match serde_json::from_value(tag_value) {
|
let tag: EmojiTag = match serde_json::from_value(tag_value) {
|
||||||
Ok(tag) => tag,
|
Ok(tag) => tag,
|
||||||
Err(_) => {
|
Err(error) => {
|
||||||
log::warn!("invalid emoji tag");
|
log::warn!("invalid emoji tag: {}", error);
|
||||||
continue;
|
continue;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@ use crate::errors::ValidationError;
|
||||||
use crate::utils::html::clean_html_strict;
|
use crate::utils::html::clean_html_strict;
|
||||||
|
|
||||||
pub const ATTACHMENTS_MAX_NUM: usize = 15;
|
pub const ATTACHMENTS_MAX_NUM: usize = 15;
|
||||||
pub const EMOJI_MAX_SIZE: u64 = 100 * 1000; // 100 kB
|
pub const EMOJI_MAX_SIZE: u64 = 250 * 1000; // 250 kB
|
||||||
pub const EMOJI_MEDIA_TYPE: &str = "image/png";
|
pub const EMOJI_MEDIA_TYPE: &str = "image/png";
|
||||||
pub const EMOJIS_MAX_NUM: usize = 20;
|
pub const EMOJIS_MAX_NUM: usize = 20;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue