diff options
Diffstat (limited to 'src/client/Client.cpp')
| -rw-r--r-- | src/client/Client.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 112bdf1..1fbff93 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -469,7 +469,7 @@ std::vector<Comment*> * Client::GetComments(int saveID, int start, int count) return commentArray; } -std::vector<Save*> * Client::SearchSaves(int start, int count, string query, string sort, int & resultCount) +std::vector<Save*> * Client::SearchSaves(int start, int count, string query, string sort, bool showOwn, int & resultCount) { lastError = ""; resultCount = 0; @@ -489,6 +489,12 @@ std::vector<Save*> * Client::SearchSaves(int start, int count, string query, str urlStream << URLEscape(" "); urlStream << URLEscape("sort:") << URLEscape(sort); } + if(showOwn && authUser.ID) + { + if(query.length()) + urlStream << URLEscape(" "); + urlStream << URLEscape("user:") << URLEscape(authUser.Username); + } } data = http_simple_get((char *)urlStream.str().c_str(), &dataStatus, &dataLength); |
