Merge pull request #646 from AppFlowy-IO/longer-publish-name

chore: allow longer publish name
This commit is contained in:
Zack 2024-06-24 16:09:48 +08:00 committed by GitHub
commit 3e019eef3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -603,9 +603,9 @@ async fn check_workspace_owner_or_publisher(
fn check_collab_publish_name(publish_name: &str) -> Result<(), AppError> {
// Check len
if publish_name.len() > 20 {
if publish_name.len() > 50 {
return Err(AppError::InvalidRequest(
"Document name must be at most 20 characters long".to_string(),
"Document name must be at most 50 characters long".to_string(),
));
}