mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 19:29:52 +02:00
use json page when publishing saves from save browser
This commit is contained in:
@@ -1544,7 +1544,7 @@ RequestStatus Client::PublishSave(int saveID)
|
||||
std::stringstream urlStream;
|
||||
char *data;
|
||||
int dataStatus;
|
||||
urlStream << "http://" << SERVER << "/Browse/View.html?ID=" << saveID << "&Key=" << authUser.SessionKey;
|
||||
urlStream << "http://" << SERVER << "/Browse/View.json?ID=" << saveID << "&Key=" << authUser.SessionKey;
|
||||
if (authUser.ID)
|
||||
{
|
||||
std::stringstream userIDStream;
|
||||
@@ -1558,7 +1558,7 @@ RequestStatus Client::PublishSave(int saveID)
|
||||
lastError = "Not authenticated";
|
||||
return RequestFailure;
|
||||
}
|
||||
RequestStatus ret = ParseServerReturn(data, dataStatus, false);
|
||||
RequestStatus ret = ParseServerReturn(data, dataStatus, true);
|
||||
free(data);
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user