summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-12-18 08:29:05 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-12-18 08:29:05 +0000
commit9ab5734836b36a21950f3c30186c08274ae3d88c (patch)
tree641d92745d21cd71bb243b518c7c2bef62158004 /protocols
parentb8c1fa2cab09727f7798bc767a81c41008d31705 (diff)
VK: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/vk_feed.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/protocols/VKontakte/src/vk_feed.cpp b/protocols/VKontakte/src/vk_feed.cpp
index 9ea5104e00..631372cc12 100644
--- a/protocols/VKontakte/src/vk_feed.cpp
+++ b/protocols/VKontakte/src/vk_feed.cpp
@@ -322,7 +322,7 @@ CMString CVkProto::GetVkParent(JSONNODE *pParent, VKObjType vkParentType)
CMString tszFormat = _T("%s\n%s: https://vk.com/wall%d_%d");
tszRes.AppendFormat(tszFormat, TranslateT("post"), TranslateT("Link"), iOwnerId, iId);
}
- else if (vkParentType == vkTopic) {
+ else if (vkParentType == vkTopic || vkParentType == vkComment) {
LONG iOwnerId = json_as_int(json_get(pParent, "owner_id"));
LONG iId = json_as_int(json_get(pParent, "id"));
CMString tszTitle = json_as_string(json_get(pParent, "title"));
@@ -330,14 +330,6 @@ CMString CVkProto::GetVkParent(JSONNODE *pParent, VKObjType vkParentType)
CMString tszFormat = _T("%s %s%s%s\n%s: https://vk.com/topic%d_%d");
tszRes.AppendFormat(tszFormat, TranslateT("topic"), tszBBCIn.GetBuffer(), tszTitle.GetBuffer(), tszBBCOut.GetBuffer(), TranslateT("Link"), iOwnerId, iId);
}
- else if (vkParentType == vkComment) {
- LONG iOwnerId = json_as_int(json_get(pParent, "owner_id"));
- LONG iId = json_as_int(json_get(pParent, "id"));
- CMString tszTitle = json_as_string(json_get(pParent, "title"));
-
- CMString tszFormat = _T("%s %s%s%s\n%s: https://vk.com/topic%d_%d");
- tszRes.AppendFormat(tszFormat, TranslateT("topic"), tszBBCIn.GetBuffer(), tszTitle.GetBuffer(), tszBBCOut.GetBuffer(), TranslateT("Link"), iOwnerId, iId);
- }
return tszRes;
}