From 9ab5734836b36a21950f3c30186c08274ae3d88c Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Thu, 18 Dec 2014 08:29:05 +0000 Subject: VK: code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@11503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_feed.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'protocols') 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; } -- cgit v1.2.3