mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 00:01:25 +00:00
Fix min title char count for post titles. Fixes #1854
This commit is contained in:
parent
86b2901e8c
commit
778c86af04
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ pub fn is_valid_matrix_id(matrix_id: &str) -> bool {
|
|||
}
|
||||
|
||||
pub fn is_valid_post_title(title: &str) -> bool {
|
||||
VALID_POST_TITLE_REGEX.is_match(title)
|
||||
VALID_POST_TITLE_REGEX.is_match(title) && title.chars().count() >= 3 && !title.contains('\n')
|
||||
}
|
||||
|
||||
pub fn get_ip(conn_info: &ConnectionInfo) -> IpAddr {
|
||||
|
|
Loading…
Reference in a new issue