diff options
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index b92c72c83d..79ab9356e8 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -989,6 +989,10 @@ CMString CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport CMString tszAudio;
tszAudio.AppendFormat(_T("%s - %s"), tszArtist, tszTitle);
+ int iParamPos = tszUrl.Find(_T("?"));
+ if (m_bShortenLinksForAudio && iParamPos != -1)
+ tszUrl = tszUrl.Left(iParamPos);
+
res.AppendFormat(_T("%s: %s"),
SetBBCString(TranslateT("Audio"), iBBC, vkbbcB),
SetBBCString(tszAudio, iBBC, vkbbcUrl, tszUrl));
|