Supports remotely disabling workaround for downloading Patreon attachments

In case our workaround for downloading Patreon post attachments breaks, we can remotely disable it and force AltStore to use its fallback instead (taking user to post directly).
This commit is contained in:
Riley Testut
2023-11-30 14:33:08 -06:00
committed by Magesh K
parent ba94886ba9
commit 8add1d0f4a
5 changed files with 13 additions and 0 deletions

View File

@@ -153,6 +153,11 @@ final class FetchSourceOperation: ResultOperation<Source>
let identifier = source.identifier
if identifier == Source.altStoreIdentifier, let skipPatreonDownloads = source.userInfo?[.skipPatreonDownloads]
{
UserDefaults.shared.skipPatreonDownloads = (skipPatreonDownloads == "true")
}
try self.verify(source, response: response)
try self.verifyPledges(for: source, in: childContext)