From 1856e7c0cac02641d7969b98381519091531b6d9 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 5 Jan 2024 04:43:30 -0500 Subject: [PATCH] Increasing max items for user settings import. (#4352) - Fixes #4307 --- crates/apub/src/api/user_settings_backup.rs | 2 +- crates/utils/src/error.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/apub/src/api/user_settings_backup.rs b/crates/apub/src/api/user_settings_backup.rs index 6b7f2b2d6..bbc71b52a 100644 --- a/crates/apub/src/api/user_settings_backup.rs +++ b/crates/apub/src/api/user_settings_backup.rs @@ -404,7 +404,7 @@ mod tests { let mut backup = export_settings(export_user.clone(), context.reset_request_count()).await?; - for _ in 0..251 { + for _ in 0..2501 { backup .followed_communities .push("http://example.com".parse()?); diff --git a/crates/utils/src/error.rs b/crates/utils/src/error.rs index 2d19e85b5..d05b8c3a7 100644 --- a/crates/utils/src/error.rs +++ b/crates/utils/src/error.rs @@ -16,7 +16,7 @@ pub struct LemmyError { } /// Maximum number of items in an array passed as API parameter. See [[LemmyErrorType::TooManyItems]] -pub const MAX_API_PARAM_ELEMENTS: usize = 1000; +pub const MAX_API_PARAM_ELEMENTS: usize = 10_000; impl From for LemmyError where