This commit is contained in:
BruebachL 2026-11-10 09:13:39 +01:00 • committed by GitHub
commit b26ec833cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 1021 additions and 11 deletions

View file

@ -1119,7 +1119,9 @@ Response::ResponseCode AbstractServerSocketInterface::cmdDeckUpload(const Comman
const QString bannerCardProvider = deck.getBannerCard().providerId.left(32);
const QString tagsJson = serializeDeckTags(deck.getTags());
const QString colorIdentity = sanitizeColorIdentity(nameFromStdString(cmd.color_identity()));
const QString deckHash = deck.getDeckHash();
// Hash the timestamp-free serialisation, the same way DeckSyncManager hashes
// local files, so uploads from any path or client version compare equal.
const QString deckHash = deck.getContentHash();
QString guid = cmd.has_guid() ? nameFromStdString(cmd.guid()).left(36) : QString();
if (QUuid::fromString(guid).isNull()) {
guid = QUuid::createUuid().toString(QUuid::WithoutBraces);