diff options
author | ElzorFox <elzorfox@ya.ru> | 2024-04-22 13:39:39 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2024-04-22 13:39:39 +0500 |
commit | 9fe7160a419e7d3c5380ced77c3548a87f5b814b (patch) | |
tree | ad16d49047d7225cc48dd950561b56b86bf705c6 /protocols/VKontakte/src/misc.cpp | |
parent | 9d3005aa0f1ff4e909f6ac14a18976ce9c95e87d (diff) |
VKontakte:
remove [code] for attached messages
add new attachment patterns
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 4 |
1 files 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 <http://www.gnu.org/licenses/>. 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;
|