Increasing max items for user settings import. (#4352)

- Fixes #4307
This commit is contained in:
Dessalines 2024-01-05 04:43:30 -05:00 committed by GitHub
parent 0e6669f617
commit 1856e7c0ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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()?);

View file

@ -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<T> From<T> for LemmyError
where