diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-05-07 15:58:59 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-05-07 15:58:59 +0000 |
commit | aa6b13e2545e7b8dbab49bc14909443643e375e9 (patch) | |
tree | df88fb1a7bcc79f1fa78ae9dd2d8ed734026088b /protocols/SkypeWeb/src/skype_history_sync.cpp | |
parent | fb2739625f4424488433e4edc53082e452e610fa (diff) |
SkypeWeb: Manual JSON formation removed. Other fixes. Version bump.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13475 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_history_sync.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp index fc855687af..747f3f299b 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -176,8 +176,12 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response) HXML xml = xi.parseString(ptrT(mir_a2t(content)), 0, _T("URIObject"));
if (xml != NULL)
{
- ptrA url(mir_t2a(xi.getAttrValue(xml, L"url_thumbnail")));
- AddMessageToDb(hContact, timestamp, flags, clientMsgId, url);
+ ptrA url(mir_t2a(xi.getAttrValue(xml, L"uri")));
+ ptrA object(ParseUrl(url, "/objects/"));
+
+ CMStringA data(FORMAT, "%s: https://api.asm.skype.com/s/i?%s", Translate("Image"), object);
+
+ AddMessageToDb(hContact, timestamp, flags, clientMsgId, data.GetBuffer());
}
} //Picture
}
|