Don't check collection size on sync to third-party server

Closes #3936

(cherry picked from commit dd0abfc200)
This commit is contained in:
Damien Elmes 2025-04-23 16:59:16 +10:00
parent 25d5cc5508
commit cf97c925e2

View file

@ -71,7 +71,7 @@ impl NormalSyncer<'_> {
let local = self.col.sync_meta()?;
let local_bytes = local.collection_bytes;
let limit = *MAXIMUM_SYNC_PAYLOAD_BYTES_UNCOMPRESSED;
if local.collection_bytes > limit {
if self.server.endpoint.as_str().contains("ankiweb") && local.collection_bytes > limit {
return Err(AnkiError::sync_error(
format!("{local_bytes} > {limit}"),
SyncErrorKind::UploadTooLarge,