From 9fe7160a419e7d3c5380ced77c3548a87f5b814b Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Mon, 22 Apr 2024 13:39:39 +0500 Subject: VKontakte: remove [code] for attached messages add new attachment patterns --- protocols/VKontakte/src/misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index e568ea9c04..ba44870766 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -19,7 +19,7 @@ along with this program. If not, see . static const char *szGiftTypes[] = { "thumb_256", "thumb_96", "thumb_48" }; static const char *szVKUrls[] = { "http://vk.com/", "https://vk.com/", "http://new.vk.com/", "https://new.vk.com/", "http://m.vk.com/", "https://m.vk.com/" }; -static const char *szAttachmentMasks[] = { "wall%d_%d", "video%d_%d", "photo%d_%d", "audio%d_%d", "doc%d_%d", "market%d_%d", "story%d_%d" }; +static const char *szAttachmentMasks[] = { "wall%d_%d", "wall-%d_%d", "video%d_%d", "video-%d_%d", "photo%d_%d", "photo-%d_%d", "audio%d_%d", "audio-%d_%d", "doc%d_%d", "doc-%d_%d", "market-%d_%d", "market%d_%d", "story%d_%d", "story-%d_%d" }; static const char *szVKLinkParam[] = { "?z=", "?w=", "&z=", "&w=" }; static const wchar_t* wszVKStickerUrlMask = L"https://vk.com/sticker/1-%d-%d%s"; @@ -1701,7 +1701,7 @@ CMStringW CVkProto::GetFwdMessage(const JSONNode& jnMsg, const JSONNode& jnFUser tcSplit, SetBBCString(TranslateT("at"), iBBC, vkbbcB).c_str(), ttime, - SetBBCString(wszBody, iBBC, vkbbcCode).c_str()); + wszBody.c_str()); return wszMes; -- cgit v1.2.3