mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 03:39:57 +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;
|
std::stringstream urlStream;
|
||||||
char *data;
|
char *data;
|
||||||
int dataStatus;
|
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)
|
if (authUser.ID)
|
||||||
{
|
{
|
||||||
std::stringstream userIDStream;
|
std::stringstream userIDStream;
|
||||||
@@ -1558,7 +1558,7 @@ RequestStatus Client::PublishSave(int saveID)
|
|||||||
lastError = "Not authenticated";
|
lastError = "Not authenticated";
|
||||||
return RequestFailure;
|
return RequestFailure;
|
||||||
}
|
}
|
||||||
RequestStatus ret = ParseServerReturn(data, dataStatus, false);
|
RequestStatus ret = ParseServerReturn(data, dataStatus, true);
|
||||||
free(data);
|
free(data);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user