mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Don't check collection size on sync to third-party server
Closes #3936
(cherry picked from commit dd0abfc200
)
This commit is contained in:
parent
25d5cc5508
commit
cf97c925e2
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue