Increase remote emoji size limit to 500 kB
This commit is contained in:
parent
5450ba8871
commit
08d7482f32
2 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Allow emoji names containing hyphens.
|
- Allow emoji names containing hyphens.
|
||||||
|
- Increased remote emoji size limit to 500 kB.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ use regex::Regex;
|
||||||
use crate::errors::ValidationError;
|
use crate::errors::ValidationError;
|
||||||
|
|
||||||
const EMOJI_NAME_RE: &str = r"^[a-zA-Z0-9._-]+$";
|
const EMOJI_NAME_RE: &str = r"^[a-zA-Z0-9._-]+$";
|
||||||
pub const EMOJI_MAX_SIZE: usize = 250 * 1000; // 250 kB
|
pub const EMOJI_MAX_SIZE: usize = 500 * 1000; // 500 kB
|
||||||
pub const EMOJI_LOCAL_MAX_SIZE: usize = 50 * 1000; // 50 kB
|
pub const EMOJI_LOCAL_MAX_SIZE: usize = 50 * 1000; // 50 kB
|
||||||
pub const EMOJI_MEDIA_TYPES: [&str; 3] = [
|
pub const EMOJI_MEDIA_TYPES: [&str; 3] = [
|
||||||
"image/apng",
|
"image/apng",
|
||||||
|
|
Loading…
Reference in a new issue