summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-06-21 02:01:07 (GMT)
committer jacob1 <jfu614@gmail.com>2013-06-21 02:01:07 (GMT)
commit7a2114bc653cb450e58e59af9b8a5469d45ec140 (patch)
treed7f19719b6683b797af0dc6230ee994559034dc5 /src/client
parent3aac957e501a2fc5fde868f1fe973c523968357e (diff)
downloadpowder-7a2114bc653cb450e58e59af9b8a5469d45ec140.zip
powder-7a2114bc653cb450e58e59af9b8a5469d45ec140.tar.gz
add error messages when errors happening while fav. / unfav.ing a save, deleting a save, or unpublishing one. Also don't use session key in url to add a comment since it isn't needed
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Client.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index 1e76ade..b508d9f 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -1356,7 +1356,6 @@ LoginStatus Client::Login(std::string username, std::string password, User & use
RequestStatus Client::DeleteSave(int saveID)
{
lastError = "";
- std::vector<std::string> * tags = NULL;
std::stringstream urlStream;
char * data = NULL;
int dataStatus, dataLength;
@@ -1408,11 +1407,10 @@ failure:
RequestStatus Client::AddComment(int saveID, std::string comment)
{
lastError = "";
- std::vector<std::string> * tags = NULL;
std::stringstream urlStream;
char * data = NULL;
int dataStatus, dataLength;
- urlStream << "http://" << SERVER << "/Browse/Comments.json?ID=" << saveID << "&Key=" << authUser.SessionKey;
+ urlStream << "http://" << SERVER << "/Browse/Comments.json?ID=" << saveID;
if(authUser.ID)
{
std::stringstream userIDStream;
@@ -1469,7 +1467,6 @@ failure:
RequestStatus Client::FavouriteSave(int saveID, bool favourite)
{
lastError = "";
- std::vector<std::string> * tags = NULL;
std::stringstream urlStream;
char * data = NULL;
int dataStatus, dataLength;
@@ -1526,7 +1523,6 @@ failure:
RequestStatus Client::ReportSave(int saveID, std::string message)
{
lastError = "";
- std::vector<std::string> * tags = NULL;
std::stringstream urlStream;
char * data = NULL;
int dataStatus, dataLength;
@@ -1585,7 +1581,6 @@ failure:
RequestStatus Client::UnpublishSave(int saveID)
{
lastError = "";
- std::vector<std::string> * tags = NULL;
std::stringstream urlStream;
char * data = NULL;
int dataStatus, dataLength;