diff --git a/src/activitypub/handlers/create.rs b/src/activitypub/handlers/create.rs index fdec713..6de5b01 100644 --- a/src/activitypub/handlers/create.rs +++ b/src/activitypub/handlers/create.rs @@ -371,8 +371,8 @@ pub async fn handle_note( } else if tag_type == EMOJI { let tag: EmojiTag = match serde_json::from_value(tag_value) { Ok(tag) => tag, - Err(_) => { - log::warn!("invalid emoji tag"); + Err(error) => { + log::warn!("invalid emoji tag: {}", error); continue; }, }; diff --git a/src/models/posts/validators.rs b/src/models/posts/validators.rs index ca44da0..58a3fb4 100644 --- a/src/models/posts/validators.rs +++ b/src/models/posts/validators.rs @@ -2,7 +2,7 @@ use crate::errors::ValidationError; use crate::utils::html::clean_html_strict; 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 EMOJIS_MAX_NUM: usize = 20;