diff --git a/src/client/SaveInfo.h b/src/client/SaveInfo.h index 08b59e83f..c5163ba47 100644 --- a/src/client/SaveInfo.h +++ b/src/client/SaveInfo.h @@ -1,5 +1,6 @@ #pragma once #include "common/String.h" +#include "User.h" #include #include #include @@ -19,6 +20,8 @@ public: int Comments; int Views; int Version; + User::Elevation authorElevation; + bool authorIsBanned; ByteString userName; diff --git a/src/client/http/GetSaveRequest.cpp b/src/client/http/GetSaveRequest.cpp index 81decbcd3..c13778eb4 100644 --- a/src/client/http/GetSaveRequest.cpp +++ b/src/client/http/GetSaveRequest.cpp @@ -59,6 +59,8 @@ namespace http saveInfo->Favourite = document["Favourite"].asBool(); saveInfo->Views = document["Views"].asInt(); saveInfo->Version = document["Version"].asInt(); + saveInfo->authorElevation = User::ElevationFromString(document["Elevation"].asString()); + saveInfo->authorIsBanned = document["IsBanned"].asBool(); } catch (const std::exception &ex) {