diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-10 03:19:53 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-10 03:19:53 +0000 |
commit | 59fa9f2974052c39bd2e572874ff62cfdcc3d8e4 (patch) | |
tree | 7f24ffefdbca5367a43188c92ac8a048d3b4be61 /protocols/VKontakte | |
parent | f59c5ef32703780535d23e6c770a02d9140d8b1e (diff) |
VKontakte: add hompage clist icon support
git-svn-id: http://svn.miranda-ng.org/main/trunk@11313 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r-- | protocols/VKontakte/src/vk_queue.cpp | 2 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp index 737779411b..f3134be484 100644 --- a/protocols/VKontakte/src/vk_queue.cpp +++ b/protocols/VKontakte/src/vk_queue.cpp @@ -107,7 +107,7 @@ void CVkProto::WorkerThread(void*) << CHAR_PARAM("redirect_uri", szBlankUrl)
<< CHAR_PARAM("display", "mobile")
<< CHAR_PARAM("response_type", "token")
- << VER_API)->m_bApiReq = false;;
+ << VER_API)->m_bApiReq = false;
}
while (true) {
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index b8be081719..3cd6ca13fb 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -365,8 +365,12 @@ MCONTACT CVkProto::SetContactInfo(JSONNODE* pItem, bool flag, bool self) setTString(hContact, "About", tszValue.GetBuffer());
tszValue = json_as_string(json_get(pItem, "domain"));
- if (!tszValue.IsEmpty())
+ if (!tszValue.IsEmpty()){
setTString(hContact, "domain", tszValue.GetBuffer());
+ CMString tszUrl("https://vk.com/");
+ tszUrl.Append(tszValue);
+ setTString(hContact, "Homepage", tszUrl.GetBuffer());
+ }
return hContact;
}
|