Skip to content

Commit

Permalink
Increasing max items for user settings import. (#4352)
Browse files Browse the repository at this point in the history
- Fixes #4307
  • Loading branch information
dessalines authored Jan 5, 2024
1 parent 0e6669f commit 1856e7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/apub/src/api/user_settings_backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?);
Expand Down
2 changes: 1 addition & 1 deletion crates/utils/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1856e7c

Please sign in to comment.