summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_commands.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-04-22 15:25:57 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-04-22 15:25:57 +0000
commit2db93e0b278176b4dd68e8565ddab139d86c6e7b (patch)
tree310c2aead02f759b5503cbd2ca9ce3f1857ff6c3 /plugins/Dropbox/src/dropbox_commands.cpp
parent7e45d8a15069e165f093d03824300591d7014653 (diff)
Dropbox: links will never be short
git-svn-id: http://svn.miranda-ng.org/main/trunk@16746 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_commands.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_commands.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/Dropbox/src/dropbox_commands.cpp b/plugins/Dropbox/src/dropbox_commands.cpp
index c4c1062573..4a369bb7f3 100644
--- a/plugins/Dropbox/src/dropbox_commands.cpp
+++ b/plugins/Dropbox/src/dropbox_commands.cpp
@@ -79,14 +79,9 @@ void CDropbox::CommandShare(void *arg)
}
ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
- bool useShortUrl = db_get_b(NULL, MODULE, "UseSortLinks", 1) > 0;
- HttpRequest *request;
- if (useShortUrl)
- request = new ShareOldRequest(token, path);
- else
- request = new ShareRequest(token, path);
- NLHR_PTR response(request->Send(param->instance->hNetlibConnection));
- delete request;
+ //bool useShortUrl = db_get_b(NULL, MODULE, "UseSortLinks", 1) > 0;
+ ShareRequest request(token, path);
+ NLHR_PTR response(request.Send(param->instance->hNetlibConnection));
if (response == NULL || response->resultCode != HTTP_STATUS_OK) {
ProtoBroadcastAck(MODULE, param->hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, param->hProcess, 0);