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

- Fixes #4307
pull/4166/head
Dessalines 5 months ago committed by GitHub
parent 0e6669f617
commit 1856e7c0ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -404,7 +404,7 @@ mod tests {
let mut backup = export_settings(export_user.clone(), context.reset_request_count()).await?; let mut backup = export_settings(export_user.clone(), context.reset_request_count()).await?;
for _ in 0..251 { for _ in 0..2501 {
backup backup
.followed_communities .followed_communities
.push("http://example.com".parse()?); .push("http://example.com".parse()?);

@ -16,7 +16,7 @@ pub struct LemmyError {
} }
/// Maximum number of items in an array passed as API parameter. See [[LemmyErrorType::TooManyItems]] /// 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 impl<T> From<T> for LemmyError
where where

Loading…
Cancel
Save